Struct x11rb_protocol::protocol::xproto::SetupRequest
source · pub struct SetupRequest {
pub byte_order: u8,
pub protocol_major_version: u16,
pub protocol_minor_version: u16,
pub authorization_protocol_name: Vec<u8>,
pub authorization_protocol_data: Vec<u8>,
}
Fields§
§byte_order: u8
§protocol_major_version: u16
§protocol_minor_version: u16
Implementations§
source§impl SetupRequest
impl SetupRequest
Get the value of the authorization_protocol_name_len
field.
The authorization_protocol_name_len
field is used as the length field of the authorization_protocol_name
field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Get the value of the authorization_protocol_data_len
field.
The authorization_protocol_data_len
field is used as the length field of the authorization_protocol_data
field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Trait Implementations§
source§impl Clone for SetupRequest
impl Clone for SetupRequest
source§fn clone(&self) -> SetupRequest
fn clone(&self) -> SetupRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetupRequest
impl Debug for SetupRequest
source§impl Default for SetupRequest
impl Default for SetupRequest
source§fn default() -> SetupRequest
fn default() -> SetupRequest
source§impl<'de> Deserialize<'de> for SetupRequest
impl<'de> Deserialize<'de> for SetupRequest
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>,
source§impl Hash for SetupRequest
impl Hash for SetupRequest
source§impl Ord for SetupRequest
impl Ord for SetupRequest
source§fn cmp(&self, other: &SetupRequest) -> Ordering
fn cmp(&self, other: &SetupRequest) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SetupRequest
impl PartialEq for SetupRequest
source§fn eq(&self, other: &SetupRequest) -> bool
fn eq(&self, other: &SetupRequest) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SetupRequest
impl PartialOrd for SetupRequest
source§fn partial_cmp(&self, other: &SetupRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &SetupRequest) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more