Struct SetupRequest
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§
§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§
§impl Clone for SetupRequest
impl Clone for SetupRequest
§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 more§impl Debug for SetupRequest
impl Debug for SetupRequest
§impl Default for SetupRequest
impl Default for SetupRequest
§fn default() -> SetupRequest
fn default() -> SetupRequest
§impl Serialize for SetupRequest
impl Serialize for SetupRequest
§impl TryParse for SetupRequest
impl TryParse for SetupRequest
§fn try_parse(remaining: &[u8]) -> Result<(SetupRequest, &[u8]), ParseError>
fn try_parse(remaining: &[u8]) -> Result<(SetupRequest, &[u8]), ParseError>
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
)