Struct x11rb_protocol::protocol::shape::OffsetRequest
source · pub struct OffsetRequest {
pub destination_kind: SK,
pub destination_window: Window,
pub x_offset: i16,
pub y_offset: i16,
}
Fields§
§destination_kind: SK
§destination_window: Window
§x_offset: i16
§y_offset: i16
Implementations§
source§impl OffsetRequest
impl OffsetRequest
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self, major_opcode: u8) -> 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 OffsetRequest
impl Clone for OffsetRequest
source§fn clone(&self) -> OffsetRequest
fn clone(&self) -> OffsetRequest
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 OffsetRequest
impl Debug for OffsetRequest
source§impl Default for OffsetRequest
impl Default for OffsetRequest
source§fn default() -> OffsetRequest
fn default() -> OffsetRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OffsetRequest
impl<'de> Deserialize<'de> for OffsetRequest
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 OffsetRequest
impl Hash for OffsetRequest
source§impl Ord for OffsetRequest
impl Ord for OffsetRequest
source§fn cmp(&self, other: &OffsetRequest) -> Ordering
fn cmp(&self, other: &OffsetRequest) -> 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 OffsetRequest
impl PartialEq for OffsetRequest
source§fn eq(&self, other: &OffsetRequest) -> bool
fn eq(&self, other: &OffsetRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OffsetRequest
impl PartialOrd for OffsetRequest
source§fn partial_cmp(&self, other: &OffsetRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &OffsetRequest) -> 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 OffsetRequest
impl Request for OffsetRequest
source§impl Serialize for OffsetRequest
impl Serialize for OffsetRequest
impl Copy for OffsetRequest
impl Eq for OffsetRequest
impl StructuralPartialEq for OffsetRequest
impl VoidRequest for OffsetRequest
Auto Trait Implementations§
impl Freeze for OffsetRequest
impl RefUnwindSafe for OffsetRequest
impl Send for OffsetRequest
impl Sync for OffsetRequest
impl Unpin for OffsetRequest
impl UnwindSafe for OffsetRequest
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