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

#[non_exhaustive]pub enum Request {
    SetSelection {
        source: Option<ZwlrDataControlSourceV1>,
    },
    Destroy,
    SetPrimarySelection {
        source: Option<ZwlrDataControlSourceV1>,
    },
}

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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 Debug for Request[src]

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 !RefUnwindSafe for Request

impl Send for Request

impl Sync for Request

impl Unpin for Request

impl !UnwindSafe for Request

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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.