Struct x11rb_protocol::protocol::randr::GetProviderInfoReply
source · pub struct GetProviderInfoReply {
pub status: u8,
pub sequence: u16,
pub length: u32,
pub timestamp: Timestamp,
pub capabilities: ProviderCapability,
pub crtcs: Vec<Crtc>,
pub outputs: Vec<Output>,
pub associated_providers: Vec<Provider>,
pub associated_capability: Vec<u32>,
pub name: Vec<u8>,
}
Fields§
§status: u8
§sequence: u16
§length: u32
§timestamp: Timestamp
§capabilities: ProviderCapability
§crtcs: Vec<Crtc>
§outputs: Vec<Output>
§associated_providers: Vec<Provider>
§associated_capability: Vec<u32>
§name: Vec<u8>
Implementations§
source§impl GetProviderInfoReply
impl GetProviderInfoReply
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_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.
sourcepub 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§
source§impl Clone for GetProviderInfoReply
impl Clone for GetProviderInfoReply
source§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 moresource§impl Debug for GetProviderInfoReply
impl Debug for GetProviderInfoReply
source§impl Default for GetProviderInfoReply
impl Default for GetProviderInfoReply
source§fn default() -> GetProviderInfoReply
fn default() -> GetProviderInfoReply
source§impl<'de> Deserialize<'de> for GetProviderInfoReply
impl<'de> Deserialize<'de> for GetProviderInfoReply
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<GetProviderInfoReply> for Reply
impl From<GetProviderInfoReply> for Reply
source§fn from(reply: GetProviderInfoReply) -> Reply
fn from(reply: GetProviderInfoReply) -> Reply
source§impl Hash for GetProviderInfoReply
impl Hash for GetProviderInfoReply
source§impl Ord for GetProviderInfoReply
impl Ord for GetProviderInfoReply
source§fn cmp(&self, other: &GetProviderInfoReply) -> Ordering
fn cmp(&self, other: &GetProviderInfoReply) -> 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 GetProviderInfoReply
impl PartialEq for GetProviderInfoReply
source§fn eq(&self, other: &GetProviderInfoReply) -> bool
fn eq(&self, other: &GetProviderInfoReply) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GetProviderInfoReply
impl PartialOrd for GetProviderInfoReply
source§fn partial_cmp(&self, other: &GetProviderInfoReply) -> Option<Ordering>
fn partial_cmp(&self, other: &GetProviderInfoReply) -> 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