pub struct Descriptor<'a> {
pub tag: u8,
pub data: &'a [u8],
pub body: DescriptorBody<'a>,
}Expand description
One descriptor decoded from a descriptor list.
Fields§
§tag: u88-bit descriptor tag (Table 2-45).
data: &'a [u8]Raw descriptor payload — exactly descriptor_length bytes.
body: DescriptorBody<'a>Decoded body for the tags this module knows how to interpret,
or DescriptorBody::Raw for unrecognised tags.
Trait Implementations§
Source§impl<'a> Clone for Descriptor<'a>
impl<'a> Clone for Descriptor<'a>
Source§fn clone(&self) -> Descriptor<'a>
fn clone(&self) -> Descriptor<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for Descriptor<'a>
impl<'a> RefUnwindSafe for Descriptor<'a>
impl<'a> Send for Descriptor<'a>
impl<'a> Sync for Descriptor<'a>
impl<'a> Unpin for Descriptor<'a>
impl<'a> UnsafeUnpin for Descriptor<'a>
impl<'a> UnwindSafe for Descriptor<'a>
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