Struct x11rb_protocol::protocol::xv::AdaptorInfo
source · pub struct AdaptorInfo {
pub base_id: Port,
pub num_ports: u16,
pub type_: Type,
pub name: Vec<u8>,
pub formats: Vec<Format>,
}
Fields§
§base_id: Port
§num_ports: u16
§type_: Type
§name: Vec<u8>
§formats: Vec<Format>
Implementations§
source§impl AdaptorInfo
impl AdaptorInfo
sourcepub fn name_size(&self) -> u16
pub fn name_size(&self) -> u16
Get the value of the name_size
field.
The name_size
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.
sourcepub fn num_formats(&self) -> u16
pub fn num_formats(&self) -> u16
Get the value of the num_formats
field.
The num_formats
field is used as the length field of the formats
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 AdaptorInfo
impl Clone for AdaptorInfo
source§fn clone(&self) -> AdaptorInfo
fn clone(&self) -> AdaptorInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AdaptorInfo
impl Debug for AdaptorInfo
source§impl Default for AdaptorInfo
impl Default for AdaptorInfo
source§fn default() -> AdaptorInfo
fn default() -> AdaptorInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AdaptorInfo
impl<'de> Deserialize<'de> for AdaptorInfo
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for AdaptorInfo
impl Hash for AdaptorInfo
source§impl Ord for AdaptorInfo
impl Ord for AdaptorInfo
source§fn cmp(&self, other: &AdaptorInfo) -> Ordering
fn cmp(&self, other: &AdaptorInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AdaptorInfo
impl PartialEq for AdaptorInfo
source§fn eq(&self, other: &AdaptorInfo) -> bool
fn eq(&self, other: &AdaptorInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AdaptorInfo
impl PartialOrd for AdaptorInfo
source§fn partial_cmp(&self, other: &AdaptorInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &AdaptorInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for AdaptorInfo
impl Serialize for AdaptorInfo
source§impl Serialize for AdaptorInfo
impl Serialize for AdaptorInfo
source§impl TryParse for AdaptorInfo
impl TryParse for AdaptorInfo
impl Eq for AdaptorInfo
impl StructuralPartialEq for AdaptorInfo
Auto Trait Implementations§
impl Freeze for AdaptorInfo
impl RefUnwindSafe for AdaptorInfo
impl Send for AdaptorInfo
impl Sync for AdaptorInfo
impl Unpin for AdaptorInfo
impl UnwindSafe for AdaptorInfo
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
Mutably borrows from an owned value. Read more
source§impl<T> TryParseFd for Twhere
T: TryParse,
impl<T> TryParseFd for Twhere
T: TryParse,
source§fn try_parse_fd<'a>(
value: &'a [u8],
_: &mut Vec<RawFdContainer>
) -> Result<(T, &'a [u8]), ParseError>
fn try_parse_fd<'a>( value: &'a [u8], _: &mut Vec<RawFdContainer> ) -> Result<(T, &'a [u8]), ParseError>
Try to parse the given values into an instance of this type. Read more