[][src]Enum wayland_protocols::wlr::unstable::data_control::v1::server::zwlr_data_control_offer_v1::Request

pub enum Request {
    Receive {
        mime_type: String,
        fd: RawFd,
    },
    Destroy,
    // some variants omitted
}

Variants

Receive

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.

Fields of Receive

mime_type: Stringfd: RawFd
Destroy

destroy this offer

Destroys the data offer object.

This is a destructor, once received this object cannot be used any longer.

Trait Implementations

impl MessageGroup for Request[src]

type Map = ResourceMap

The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more

Auto Trait Implementations

impl Send for Request

impl Sync for Request

impl Unpin for Request

impl RefUnwindSafe for Request

impl UnwindSafe for Request

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Downcast for T where
    T: Any