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
sourceimpl SetSelectionOwnerRequest
impl SetSelectionOwnerRequest
sourcepub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
pub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
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
sourceimpl Clone for SetSelectionOwnerRequest
impl Clone for SetSelectionOwnerRequest
sourcefn clone(&self) -> SetSelectionOwnerRequest
fn clone(&self) -> SetSelectionOwnerRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SetSelectionOwnerRequest
impl Debug for SetSelectionOwnerRequest
sourceimpl Default for SetSelectionOwnerRequest
impl Default for SetSelectionOwnerRequest
sourcefn default() -> SetSelectionOwnerRequest
fn default() -> SetSelectionOwnerRequest
Returns the “default value” for a type. Read more
sourceimpl Hash for SetSelectionOwnerRequest
impl Hash for SetSelectionOwnerRequest
sourceimpl Ord for SetSelectionOwnerRequest
impl Ord for SetSelectionOwnerRequest
sourceimpl PartialEq<SetSelectionOwnerRequest> for SetSelectionOwnerRequest
impl PartialEq<SetSelectionOwnerRequest> for SetSelectionOwnerRequest
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SetSelectionOwnerRequest) -> bool
fn ne(&self, other: &SetSelectionOwnerRequest) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SetSelectionOwnerRequest> for SetSelectionOwnerRequest
impl PartialOrd<SetSelectionOwnerRequest> for SetSelectionOwnerRequest
sourcefn partial_cmp(&self, other: &SetSelectionOwnerRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &SetSelectionOwnerRequest) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Request for SetSelectionOwnerRequest
impl Request for SetSelectionOwnerRequest
impl Copy for SetSelectionOwnerRequest
impl Eq for SetSelectionOwnerRequest
impl StructuralEq for SetSelectionOwnerRequest
impl StructuralPartialEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more