Struct GetScreenResourcesReply
pub struct GetScreenResourcesReply {
pub sequence: u16,
pub length: u32,
pub timestamp: u32,
pub config_timestamp: u32,
pub crtcs: Vec<u32>,
pub outputs: Vec<u32>,
pub modes: Vec<ModeInfo>,
pub names: Vec<u8>,
}
Fields§
§sequence: u16
§length: u32
§timestamp: u32
§config_timestamp: u32
§crtcs: Vec<u32>
§outputs: Vec<u32>
§modes: Vec<ModeInfo>
§names: Vec<u8>
Implementations§
§impl GetScreenResourcesReply
impl GetScreenResourcesReply
pub 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.
pub 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.
pub 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.
pub 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§
§impl Clone for GetScreenResourcesReply
impl Clone for GetScreenResourcesReply
§fn clone(&self) -> GetScreenResourcesReply
fn clone(&self) -> GetScreenResourcesReply
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for GetScreenResourcesReply
impl Debug for GetScreenResourcesReply
§impl Default for GetScreenResourcesReply
impl Default for GetScreenResourcesReply
§fn default() -> GetScreenResourcesReply
fn default() -> GetScreenResourcesReply
§impl From<GetScreenResourcesReply> for Reply
impl From<GetScreenResourcesReply> for Reply
§fn from(reply: GetScreenResourcesReply) -> Reply
fn from(reply: GetScreenResourcesReply) -> Reply
§impl Serialize for GetScreenResourcesReply
impl Serialize for GetScreenResourcesReply
§impl TryParse for GetScreenResourcesReply
impl TryParse for GetScreenResourcesReply
§fn try_parse(
initial_value: &[u8],
) -> Result<(GetScreenResourcesReply, &[u8]), ParseError>
fn try_parse( initial_value: &[u8], ) -> Result<(GetScreenResourcesReply, &[u8]), ParseError>
Auto Trait Implementations§
impl Freeze for GetScreenResourcesReply
impl RefUnwindSafe for GetScreenResourcesReply
impl Send for GetScreenResourcesReply
impl Sync for GetScreenResourcesReply
impl Unpin for GetScreenResourcesReply
impl UnwindSafe for GetScreenResourcesReply
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
)