Enum wayland_protocols::wlr::unstable::data_control::v1::client::zwlr_data_control_device_v1::Request
source · #[non_exhaustive]pub enum Request {
SetSelection {
source: Option<ZwlrDataControlSourceV1>,
},
Destroy,
SetPrimarySelection {
source: Option<ZwlrDataControlSourceV1>,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SetSelection
Fields
source: Option<ZwlrDataControlSourceV1>
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.
Destroy
destroy this data device
Destroys the data device object.
This is a destructor, once sent this object cannot be used any longer.
SetPrimarySelection
Fields
source: Option<ZwlrDataControlSourceV1>
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
Trait Implementations§
source§impl MessageGroup for Request
impl MessageGroup for Request
source§const MESSAGES: &'static [MessageDesc] = _
const MESSAGES: &'static [MessageDesc] = _
§type Map = ProxyMap
type Map = ProxyMap
source§fn is_destructor(&self) -> bool
fn is_destructor(&self) -> bool
source§fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>
fn child<Meta: ObjectMetadata>( opcode: u16, version: u32, meta: &Meta ) -> Option<Object<Meta>>
Object
associated with this message if any