Struct wayland_protocols::wlr::unstable::data_control::v1::client::zwlr_data_control_offer_v1::ZwlrDataControlOfferV1
source · pub struct ZwlrDataControlOfferV1(/* private fields */);
Implementations§
source§impl ZwlrDataControlOfferV1
impl ZwlrDataControlOfferV1
sourcepub fn receive(&self, mime_type: String, fd: RawFd)
pub fn receive(&self, mime_type: String, fd: RawFd)
request that the data is transferred
To transfer the offered data, the client issues this request and indicates the MIME type it wants to receive. The transfer happens through the passed file descriptor (typically created with the pipe system call). The source client writes the data in the MIME type representation requested and then closes the file descriptor.
The receiving client reads from the read end of the pipe until EOF and then closes its end, at which point the transfer is complete.
This request may happen multiple times for different MIME types.
Trait Implementations§
source§impl Clone for ZwlrDataControlOfferV1
impl Clone for ZwlrDataControlOfferV1
source§fn clone(&self) -> ZwlrDataControlOfferV1
fn clone(&self) -> ZwlrDataControlOfferV1
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ZwlrDataControlOfferV1
impl Debug for ZwlrDataControlOfferV1
source§impl From<ZwlrDataControlOfferV1> for Proxy<ZwlrDataControlOfferV1>
impl From<ZwlrDataControlOfferV1> for Proxy<ZwlrDataControlOfferV1>
source§fn from(value: ZwlrDataControlOfferV1) -> Self
fn from(value: ZwlrDataControlOfferV1) -> Self
Converts to this type from the input type.
source§impl Interface for ZwlrDataControlOfferV1
impl Interface for ZwlrDataControlOfferV1
source§fn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
source§impl PartialEq for ZwlrDataControlOfferV1
impl PartialEq for ZwlrDataControlOfferV1
source§fn eq(&self, other: &ZwlrDataControlOfferV1) -> bool
fn eq(&self, other: &ZwlrDataControlOfferV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ZwlrDataControlOfferV1
impl StructuralEq for ZwlrDataControlOfferV1
impl StructuralPartialEq for ZwlrDataControlOfferV1
Auto Trait Implementations§
impl !RefUnwindSafe for ZwlrDataControlOfferV1
impl Send for ZwlrDataControlOfferV1
impl Sync for ZwlrDataControlOfferV1
impl Unpin for ZwlrDataControlOfferV1
impl !UnwindSafe for ZwlrDataControlOfferV1
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more