pub struct GetMonitorReply {
pub sequence: u16,
pub length: u32,
pub hsync: Vec<Syncrange>,
pub vsync: Vec<Syncrange>,
pub vendor: Vec<u8>,
pub alignment_pad: Vec<u8>,
pub model: Vec<u8>,
}
Fields§
§sequence: u16
§length: u32
§hsync: Vec<Syncrange>
§vsync: Vec<Syncrange>
§vendor: Vec<u8>
§alignment_pad: Vec<u8>
§model: Vec<u8>
Implementations§
Source§impl GetMonitorReply
impl GetMonitorReply
Sourcepub fn vendor_length(&self) -> u8
pub fn vendor_length(&self) -> u8
Get the value of the vendor_length
field.
The vendor_length
field is used as the length field of the vendor
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.
Sourcepub fn model_length(&self) -> u8
pub fn model_length(&self) -> u8
Get the value of the model_length
field.
The model_length
field is used as the length field of the model
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.
Sourcepub fn num_hsync(&self) -> u8
pub fn num_hsync(&self) -> u8
Get the value of the num_hsync
field.
The num_hsync
field is used as the length field of the hsync
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.
Sourcepub fn num_vsync(&self) -> u8
pub fn num_vsync(&self) -> u8
Get the value of the num_vsync
field.
The num_vsync
field is used as the length field of the vsync
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 GetMonitorReply
impl Clone for GetMonitorReply
Source§fn clone(&self) -> GetMonitorReply
fn clone(&self) -> GetMonitorReply
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more