[][src]Enum smithay_client_toolkit::primary_selection::PrimarySelectionSourceEvent

pub enum PrimarySelectionSourceEvent {
    Send {
        mime_type: String,
        pipe: WritePipe,
    },
    Cancelled,
}

Possible events a primary selection source needs to react to.

Variants

Send

Write the offered data for selected mime type.

Fields of Send

mime_type: String

Requested mime type.

pipe: WritePipe

Pipe to write into.

Cancelled

The action using the primary selection source was cancelled.

Once this event is received, the PrimarySelectionSource can not be used any more, and you should drop it for cleanup.

Happens if the user replaces primary selection buffer.

Auto Trait Implementations

impl RefUnwindSafe for PrimarySelectionSourceEvent

impl Send for PrimarySelectionSourceEvent

impl Sync for PrimarySelectionSourceEvent

impl Unpin for PrimarySelectionSourceEvent

impl UnwindSafe for PrimarySelectionSourceEvent

Blanket Implementations

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

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

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

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.