pub struct ApplicationUsageDescriptor {
pub usage_type: u8,
}Expand description
Application Usage Descriptor (AIT tag 0x16).
Fields§
§usage_type: u88-bit usage_type (Table 11: 0x01 = Digital Text, 0x02..0x7F reserved, 0x80..0xFF platform-specific).
Implementations§
Source§impl ApplicationUsageDescriptor
impl ApplicationUsageDescriptor
Sourcepub fn usage_type_name(&self) -> Option<&'static str>
pub fn usage_type_name(&self) -> Option<&'static str>
Returns the well-known name for usage_type, or None if the value
is not recognised.
Trait Implementations§
Source§impl Clone for ApplicationUsageDescriptor
impl Clone for ApplicationUsageDescriptor
Source§fn clone(&self) -> ApplicationUsageDescriptor
fn clone(&self) -> ApplicationUsageDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApplicationUsageDescriptor
impl Debug for ApplicationUsageDescriptor
Source§impl<'a> DescriptorDef<'a> for ApplicationUsageDescriptor
impl<'a> DescriptorDef<'a> for ApplicationUsageDescriptor
impl Eq for ApplicationUsageDescriptor
Source§impl<'a> From<ApplicationUsageDescriptor> for AnyAitDescriptor<'a>
impl<'a> From<ApplicationUsageDescriptor> for AnyAitDescriptor<'a>
Source§fn from(d: ApplicationUsageDescriptor) -> Self
fn from(d: ApplicationUsageDescriptor) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for ApplicationUsageDescriptor
impl<'a> Parse<'a> for ApplicationUsageDescriptor
Source§impl PartialEq for ApplicationUsageDescriptor
impl PartialEq for ApplicationUsageDescriptor
Source§fn eq(&self, other: &ApplicationUsageDescriptor) -> bool
fn eq(&self, other: &ApplicationUsageDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ApplicationUsageDescriptor
impl Serialize for ApplicationUsageDescriptor
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for ApplicationUsageDescriptor
Auto Trait Implementations§
impl Freeze for ApplicationUsageDescriptor
impl RefUnwindSafe for ApplicationUsageDescriptor
impl Send for ApplicationUsageDescriptor
impl Sync for ApplicationUsageDescriptor
impl Unpin for ApplicationUsageDescriptor
impl UnsafeUnpin for ApplicationUsageDescriptor
impl UnwindSafe for ApplicationUsageDescriptor
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