[][src]Enum wayland_protocols::wlr::unstable::data_control::v1::client::zwlr_data_control_device_v1::Event

pub enum Event {
    DataOffer {
        id: NewProxy<ZwlrDataControlOfferV1>,
    },
    Selection {
        id: Option<Proxy<ZwlrDataControlOfferV1>>,
    },
    Finished,
}

Variants

DataOffer

introduce a new wlr_data_control_offer

The data_offer event introduces a new wlr_data_control_offer object, which will subsequently be used in the wlr_data_control_device.selection event. Immediately following the wlr_data_control_device.data_offer event, the new data_offer object will send out wlr_data_control_offer.offer events to describe the MIME types it offers.

This event replaces the previous data offer, which should be destroyed by the client.

Fields of DataOffer

id: NewProxy<ZwlrDataControlOfferV1>
Selection

introduce a new wlr_data_control_offer

The selection event is sent out to notify the client of a new wlr_data_control_offer for the selection for this device. The wlr_data_control_device.data_offer and the wlr_data_control_offer.offer events are sent out immediately before this event to introduce the data offer object. The selection event is sent to a client when a new selection is set. The wlr_data_control_offer is valid until a new wlr_data_control_offer or NULL is received. The client must destroy the previous selection wlr_data_control_offer, if any, upon receiving this event.

Fields of Selection

id: Option<Proxy<ZwlrDataControlOfferV1>>
Finished

this data control is no longer valid

This data control object is no longer valid and should be destroyed by the client.

Trait Implementations

impl MessageGroup for Event[src]

type Map = ProxyMap

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 Event

impl Unpin for Event

impl !Sync for Event

impl !UnwindSafe for Event

impl !RefUnwindSafe for Event

Blanket Implementations

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

impl<T> From<T> for 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]