Struct x11rb::protocol::xproto::SetSelectionOwnerRequest
source · 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§
source§impl Clone for SetSelectionOwnerRequest
impl Clone for SetSelectionOwnerRequest
source§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 moresource§impl Debug for SetSelectionOwnerRequest
impl Debug for SetSelectionOwnerRequest
source§impl Default for SetSelectionOwnerRequest
impl Default for SetSelectionOwnerRequest
source§fn default() -> SetSelectionOwnerRequest
fn default() -> SetSelectionOwnerRequest
Returns the “default value” for a type. Read more
source§impl Request for SetSelectionOwnerRequest
impl Request for SetSelectionOwnerRequest
impl Copy for SetSelectionOwnerRequest
impl VoidRequest for SetSelectionOwnerRequest
Auto Trait Implementations§
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