pub struct UnknownDescriptor<'buf> {
pub tag: u8,
pub payload: &'buf [u8],
}Expand description
Catch-all type for when there is no explicit handling for the given descriptor type.
Fields§
§tag: u8the descriptor’s identifying ‘tag’ value; different types of descriptors are assigned different tag values
payload: &'buf [u8]the descriptor’s payload bytes
Implementations§
Source§impl<'buf> UnknownDescriptor<'buf>
impl<'buf> UnknownDescriptor<'buf>
Sourcepub fn new(
tag: u8,
payload: &'buf [u8],
) -> Result<UnknownDescriptor<'buf>, DescriptorError>
pub fn new( tag: u8, payload: &'buf [u8], ) -> Result<UnknownDescriptor<'buf>, DescriptorError>
Constructor, in the form required for use with the
descriptor_enum!{} macro.
Trait Implementations§
Auto Trait Implementations§
impl<'buf> Freeze for UnknownDescriptor<'buf>
impl<'buf> RefUnwindSafe for UnknownDescriptor<'buf>
impl<'buf> Send for UnknownDescriptor<'buf>
impl<'buf> Sync for UnknownDescriptor<'buf>
impl<'buf> Unpin for UnknownDescriptor<'buf>
impl<'buf> UnwindSafe for UnknownDescriptor<'buf>
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