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 Serialize for SetupRequest
impl Serialize for SetupRequest
Auto Trait Implementations§
impl Freeze for SetupRequest
impl RefUnwindSafe for SetupRequest
impl Send for SetupRequest
impl Sync for SetupRequest
impl Unpin for SetupRequest
impl UnwindSafe for SetupRequest
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
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)
clone_to_uninit
)