pub struct GetScreenResourcesCurrentReply {
pub sequence: u16,
pub length: u32,
pub timestamp: Timestamp,
pub config_timestamp: Timestamp,
pub crtcs: Vec<Crtc>,
pub outputs: Vec<Output>,
pub modes: Vec<ModeInfo>,
pub names: Vec<u8>,
}
Fields§
§sequence: u16
§length: u32
§timestamp: Timestamp
§config_timestamp: Timestamp
§crtcs: Vec<Crtc>
§outputs: Vec<Output>
§modes: Vec<ModeInfo>
§names: Vec<u8>
Implementations§
source§impl GetScreenResourcesCurrentReply
impl GetScreenResourcesCurrentReply
sourcepub fn num_crtcs(&self) -> u16
pub fn num_crtcs(&self) -> u16
Get the value of the num_crtcs
field.
The num_crtcs
field is used as the length field of the crtcs
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_outputs(&self) -> u16
pub fn num_outputs(&self) -> u16
Get the value of the num_outputs
field.
The num_outputs
field is used as the length field of the outputs
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_modes(&self) -> u16
pub fn num_modes(&self) -> u16
Get the value of the num_modes
field.
The num_modes
field is used as the length field of the modes
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 names_len(&self) -> u16
pub fn names_len(&self) -> u16
Get the value of the names_len
field.
The names_len
field is used as the length field of the names
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 GetScreenResourcesCurrentReply
impl Clone for GetScreenResourcesCurrentReply
source§fn clone(&self) -> GetScreenResourcesCurrentReply
fn clone(&self) -> GetScreenResourcesCurrentReply
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetScreenResourcesCurrentReply
impl Default for GetScreenResourcesCurrentReply
source§fn default() -> GetScreenResourcesCurrentReply
fn default() -> GetScreenResourcesCurrentReply
source§impl<'de> Deserialize<'de> for GetScreenResourcesCurrentReply
impl<'de> Deserialize<'de> for GetScreenResourcesCurrentReply
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 From<GetScreenResourcesCurrentReply> for Reply
impl From<GetScreenResourcesCurrentReply> for Reply
source§fn from(reply: GetScreenResourcesCurrentReply) -> Reply
fn from(reply: GetScreenResourcesCurrentReply) -> Reply
source§impl Ord for GetScreenResourcesCurrentReply
impl Ord for GetScreenResourcesCurrentReply
source§fn cmp(&self, other: &GetScreenResourcesCurrentReply) -> Ordering
fn cmp(&self, other: &GetScreenResourcesCurrentReply) -> 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 GetScreenResourcesCurrentReply
impl PartialEq for GetScreenResourcesCurrentReply
source§fn eq(&self, other: &GetScreenResourcesCurrentReply) -> bool
fn eq(&self, other: &GetScreenResourcesCurrentReply) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GetScreenResourcesCurrentReply
impl PartialOrd for GetScreenResourcesCurrentReply
source§fn partial_cmp(
&self,
other: &GetScreenResourcesCurrentReply
) -> Option<Ordering>
fn partial_cmp( &self, other: &GetScreenResourcesCurrentReply ) -> 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