Struct x11rb_protocol::protocol::xproto::SetSelectionOwnerRequest
source · pub struct SetSelectionOwnerRequest {
pub owner: Window,
pub selection: Atom,
pub time: Timestamp,
}
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: Window
§selection: Atom
§time: Timestamp
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 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
)