Struct wayland_protocols::misc::gtk_primary_selection::client::gtk_primary_selection_offer::GtkPrimarySelectionOffer
source · pub struct GtkPrimarySelectionOffer(/* private fields */);
Implementations§
source§impl GtkPrimarySelectionOffer
impl GtkPrimarySelectionOffer
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 GtkPrimarySelectionOffer
impl Clone for GtkPrimarySelectionOffer
source§fn clone(&self) -> GtkPrimarySelectionOffer
fn clone(&self) -> GtkPrimarySelectionOffer
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 GtkPrimarySelectionOffer
impl Debug for GtkPrimarySelectionOffer
source§impl From<GtkPrimarySelectionOffer> for Proxy<GtkPrimarySelectionOffer>
impl From<GtkPrimarySelectionOffer> for Proxy<GtkPrimarySelectionOffer>
source§fn from(value: GtkPrimarySelectionOffer) -> Self
fn from(value: GtkPrimarySelectionOffer) -> Self
Converts to this type from the input type.
source§impl Interface for GtkPrimarySelectionOffer
impl Interface for GtkPrimarySelectionOffer
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 GtkPrimarySelectionOffer
impl PartialEq for GtkPrimarySelectionOffer
source§fn eq(&self, other: &GtkPrimarySelectionOffer) -> bool
fn eq(&self, other: &GtkPrimarySelectionOffer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GtkPrimarySelectionOffer
impl StructuralEq for GtkPrimarySelectionOffer
impl StructuralPartialEq for GtkPrimarySelectionOffer
Auto Trait Implementations§
impl !RefUnwindSafe for GtkPrimarySelectionOffer
impl Send for GtkPrimarySelectionOffer
impl Sync for GtkPrimarySelectionOffer
impl Unpin for GtkPrimarySelectionOffer
impl !UnwindSafe for GtkPrimarySelectionOffer
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