#[non_exhaustive]pub enum Request {
SetSelection {
source: Option<ExtDataControlSourceV1>,
},
Destroy,
SetPrimarySelection {
source: Option<ExtDataControlSourceV1>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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 triggers the used_source protocol error.
To unset the selection, set the source to NULL.
Fields
source: Option<ExtDataControlSourceV1>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 triggers the used_source 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.
Fields
source: Option<ExtDataControlSourceV1>