Struct SetSelectionOwnerRequest
pub struct SetSelectionOwnerRequest {
pub owner: u32,
pub selection: u32,
pub time: u32,
}
Expand description
Sets the owner of a selection.
Makes window
the owner of the selection selection
and updates the
last-change time of the specified selection.
TODO: briefly explain what a selection is.
§Fields
selection
- The selection.owner
- The new owner of the selection.
The special value XCB_NONE
means that the selection will have no owner.
time
- Timestamp to avoid race conditions when running X over the network.
The selection will not be changed if time
is earlier than the current
last-change time of the selection
or is later than the current X server time.
Otherwise, the last-change time is set to the specified time.
The special value XCB_CURRENT_TIME
will be replaced with the current server
time.
§Errors
Atom
-selection
does not refer to a valid atom.
§See
SetSelectionOwner
: request
Fields§
§owner: u32
§selection: u32
§time: u32
Implementations§
Trait Implementations§
§impl Clone for SetSelectionOwnerRequest
impl Clone for SetSelectionOwnerRequest
§fn clone(&self) -> SetSelectionOwnerRequest
fn clone(&self) -> SetSelectionOwnerRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for SetSelectionOwnerRequest
impl Debug for SetSelectionOwnerRequest
§impl Default for SetSelectionOwnerRequest
impl Default for SetSelectionOwnerRequest
§fn default() -> SetSelectionOwnerRequest
fn default() -> SetSelectionOwnerRequest
Returns the “default value” for a type. Read more
§impl Request for SetSelectionOwnerRequest
impl Request for SetSelectionOwnerRequest
impl Copy for SetSelectionOwnerRequest
impl VoidRequest for SetSelectionOwnerRequest
Auto Trait Implementations§
impl Freeze for SetSelectionOwnerRequest
impl RefUnwindSafe for SetSelectionOwnerRequest
impl Send for SetSelectionOwnerRequest
impl Sync for SetSelectionOwnerRequest
impl Unpin for SetSelectionOwnerRequest
impl UnwindSafe for SetSelectionOwnerRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)