Struct x11rb_async::protocol::xf86vidmode::GetMonitorReply
source · pub struct GetMonitorReply {
pub sequence: u16,
pub length: u32,
pub hsync: Vec<u32>,
pub vsync: Vec<u32>,
pub vendor: Vec<u8>,
pub alignment_pad: Vec<u8>,
pub model: Vec<u8>,
}Fields§
§sequence: u16§length: u32§hsync: Vec<u32>§vsync: Vec<u32>§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 moresource§impl Debug for GetMonitorReply
impl Debug for GetMonitorReply
source§impl Default for GetMonitorReply
impl Default for GetMonitorReply
source§fn default() -> GetMonitorReply
fn default() -> GetMonitorReply
source§impl From<GetMonitorReply> for Reply
impl From<GetMonitorReply> for Reply
source§fn from(reply: GetMonitorReply) -> Reply
fn from(reply: GetMonitorReply) -> Reply
source§impl Hash for GetMonitorReply
impl Hash for GetMonitorReply
source§impl Ord for GetMonitorReply
impl Ord for GetMonitorReply
source§fn cmp(&self, other: &GetMonitorReply) -> Ordering
fn cmp(&self, other: &GetMonitorReply) -> 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 GetMonitorReply
impl PartialEq for GetMonitorReply
source§fn eq(&self, other: &GetMonitorReply) -> bool
fn eq(&self, other: &GetMonitorReply) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd for GetMonitorReply
impl PartialOrd for GetMonitorReply
source§fn partial_cmp(&self, other: &GetMonitorReply) -> Option<Ordering>
fn partial_cmp(&self, other: &GetMonitorReply) -> 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