Struct GetProviderInfoReply
pub struct GetProviderInfoReply {
pub status: u8,
pub sequence: u16,
pub length: u32,
pub timestamp: u32,
pub capabilities: ProviderCapability,
pub crtcs: Vec<u32>,
pub outputs: Vec<u32>,
pub associated_providers: Vec<u32>,
pub associated_capability: Vec<u32>,
pub name: Vec<u8>,
}
Fields§
§status: u8
§sequence: u16
§length: u32
§timestamp: u32
§capabilities: ProviderCapability
§crtcs: Vec<u32>
§outputs: Vec<u32>
§associated_providers: Vec<u32>
§associated_capability: Vec<u32>
§name: Vec<u8>
Implementations§
§impl GetProviderInfoReply
impl GetProviderInfoReply
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_associated_providers(&self) -> u16
pub fn num_associated_providers(&self) -> u16
Get the value of the num_associated_providers
field.
The num_associated_providers
field is used as the length field of the associated_providers
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 name_len(&self) -> u16
pub fn name_len(&self) -> u16
Get the value of the name_len
field.
The name_len
field is used as the length field of the 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.
Trait Implementations§
§impl Clone for GetProviderInfoReply
impl Clone for GetProviderInfoReply
§fn clone(&self) -> GetProviderInfoReply
fn clone(&self) -> GetProviderInfoReply
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for GetProviderInfoReply
impl Debug for GetProviderInfoReply
§impl Default for GetProviderInfoReply
impl Default for GetProviderInfoReply
§fn default() -> GetProviderInfoReply
fn default() -> GetProviderInfoReply
§impl From<GetProviderInfoReply> for Reply
impl From<GetProviderInfoReply> for Reply
§fn from(reply: GetProviderInfoReply) -> Reply
fn from(reply: GetProviderInfoReply) -> Reply
§impl Serialize for GetProviderInfoReply
impl Serialize for GetProviderInfoReply
§impl TryParse for GetProviderInfoReply
impl TryParse for GetProviderInfoReply
§fn try_parse(
initial_value: &[u8],
) -> Result<(GetProviderInfoReply, &[u8]), ParseError>
fn try_parse( initial_value: &[u8], ) -> Result<(GetProviderInfoReply, &[u8]), ParseError>
Auto Trait Implementations§
impl Freeze for GetProviderInfoReply
impl RefUnwindSafe for GetProviderInfoReply
impl Send for GetProviderInfoReply
impl Sync for GetProviderInfoReply
impl Unpin for GetProviderInfoReply
impl UnwindSafe for GetProviderInfoReply
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
)