Struct wayland_protocols::unstable::primary_selection::v1::client::zwp_primary_selection_offer_v1::ZwpPrimarySelectionOfferV1
source · pub struct ZwpPrimarySelectionOfferV1(/* private fields */);
Implementations§
source§impl ZwpPrimarySelectionOfferV1
impl ZwpPrimarySelectionOfferV1
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 contents of the primary selection clipboard, the client issues this request and indicates the mime type that 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 closes its end, at which point the transfer is complete.
Trait Implementations§
source§impl Clone for ZwpPrimarySelectionOfferV1
impl Clone for ZwpPrimarySelectionOfferV1
source§fn clone(&self) -> ZwpPrimarySelectionOfferV1
fn clone(&self) -> ZwpPrimarySelectionOfferV1
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 ZwpPrimarySelectionOfferV1
impl Debug for ZwpPrimarySelectionOfferV1
source§impl From<ZwpPrimarySelectionOfferV1> for Proxy<ZwpPrimarySelectionOfferV1>
impl From<ZwpPrimarySelectionOfferV1> for Proxy<ZwpPrimarySelectionOfferV1>
source§fn from(value: ZwpPrimarySelectionOfferV1) -> Self
fn from(value: ZwpPrimarySelectionOfferV1) -> Self
Converts to this type from the input type.
source§impl Interface for ZwpPrimarySelectionOfferV1
impl Interface for ZwpPrimarySelectionOfferV1
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 ZwpPrimarySelectionOfferV1
impl PartialEq for ZwpPrimarySelectionOfferV1
source§fn eq(&self, other: &ZwpPrimarySelectionOfferV1) -> bool
fn eq(&self, other: &ZwpPrimarySelectionOfferV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ZwpPrimarySelectionOfferV1
impl StructuralEq for ZwpPrimarySelectionOfferV1
impl StructuralPartialEq for ZwpPrimarySelectionOfferV1
Auto Trait Implementations§
impl !RefUnwindSafe for ZwpPrimarySelectionOfferV1
impl Send for ZwpPrimarySelectionOfferV1
impl Sync for ZwpPrimarySelectionOfferV1
impl Unpin for ZwpPrimarySelectionOfferV1
impl !UnwindSafe for ZwpPrimarySelectionOfferV1
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