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§
source§impl SetSelectionOwnerRequest
impl SetSelectionOwnerRequest
sourcepub fn serialize(self) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self) -> BufWithFds<[Cow<'static, [u8]>; 1]>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8] ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
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<'de> Deserialize<'de> for SetSelectionOwnerRequest
impl<'de> Deserialize<'de> for SetSelectionOwnerRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SetSelectionOwnerRequest
impl Hash for SetSelectionOwnerRequest
source§impl Ord for SetSelectionOwnerRequest
impl Ord for SetSelectionOwnerRequest
source§fn cmp(&self, other: &SetSelectionOwnerRequest) -> Ordering
fn cmp(&self, other: &SetSelectionOwnerRequest) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SetSelectionOwnerRequest
impl PartialEq for SetSelectionOwnerRequest
source§fn eq(&self, other: &SetSelectionOwnerRequest) -> bool
fn eq(&self, other: &SetSelectionOwnerRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SetSelectionOwnerRequest
impl PartialOrd for SetSelectionOwnerRequest
source§fn partial_cmp(&self, other: &SetSelectionOwnerRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &SetSelectionOwnerRequest) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Request for SetSelectionOwnerRequest
impl Request for SetSelectionOwnerRequest
source§impl Serialize for SetSelectionOwnerRequest
impl Serialize for SetSelectionOwnerRequest
impl Copy for SetSelectionOwnerRequest
impl Eq for SetSelectionOwnerRequest
impl StructuralPartialEq 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