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

pub enum Request {
    SetSelection {
        source: Option<ZwlrDataControlSourceV1>,
    },
    Destroy,
    SetPrimarySelection {
        source: Option<ZwlrDataControlSourceV1>,
    },
    // some variants omitted
}

Variants

SetSelection

copy data to the selection

This request asks the compositor to set the selection to the data from the source on behalf of the client.

The given source may not be used in any further set_selection or set_primary_selection requests. Attempting to use a previously used source is a protocol error.

To unset the selection, set the source to NULL.

Fields of SetSelection

source: Option<ZwlrDataControlSourceV1>
Destroy

destroy this data device

Destroys the data device object.

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

SetPrimarySelection

copy data to the primary selection

This request asks the compositor to set the primary selection to the data from the source on behalf of the client.

The given source may not be used in any further set_selection or set_primary_selection requests. Attempting to use a previously used source is a protocol error.

To unset the primary selection, set the source to NULL.

The compositor will ignore this request if it does not support primary selection.

Only available since version 2 of the interface

Fields of SetPrimarySelection

source: Option<ZwlrDataControlSourceV1>

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