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

Possible events a primary selection source needs to react to.

Variants

Send

Fields

mime_type: String

Requested mime type.

pipe: WritePipe

Pipe to write into.

Write the offered data for selected mime type.

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.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.