pub struct VendorSpecific<T: AsRef<[u8]>> { /* private fields */ }Expand description
Vendor Specific Header Information Element.
Implementations§
Source§impl<T: AsRef<[u8]>> VendorSpecific<T>
impl<T: AsRef<[u8]>> VendorSpecific<T>
Sourcepub fn new_unchecked(buffer: T) -> Self
pub fn new_unchecked(buffer: T) -> Self
Create a new [#name] reader/writer from a given buffer without length checking.
Sourcepub fn vendor_oui(&self) -> u32
pub fn vendor_oui(&self) -> u32
Returns the vendor OUI field.
Sourcepub fn vendor_specific_payload(&self) -> &[u8]
pub fn vendor_specific_payload(&self) -> &[u8]
Returns the vendor specific payload.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for VendorSpecific<T>where
T: Freeze,
impl<T> RefUnwindSafe for VendorSpecific<T>where
T: RefUnwindSafe,
impl<T> Send for VendorSpecific<T>where
T: Send,
impl<T> Sync for VendorSpecific<T>where
T: Sync,
impl<T> Unpin for VendorSpecific<T>where
T: Unpin,
impl<T> UnwindSafe for VendorSpecific<T>where
T: UnwindSafe,
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