pub enum PayloadInformationElementRepr {
Mlme(Vec<NestedInformationElementRepr, 16>),
PayloadTermination,
}Expand description
A high-level representation of a Payload Information Element.
Variants§
Mlme(Vec<NestedInformationElementRepr, 16>)
MLME Payload Information Element.
PayloadTermination
Payload Termination Information Element.
Implementations§
Source§impl PayloadInformationElementRepr
impl PayloadInformationElementRepr
Sourcepub fn parse(ie: &PayloadInformationElement<&[u8]>) -> Result<Self>
pub fn parse(ie: &PayloadInformationElement<&[u8]>) -> Result<Self>
Parse a Payload Information Element.
Sourcepub fn buffer_len(&self) -> usize
pub fn buffer_len(&self) -> usize
The buffer length required to emit the Payload Information Element.
Sourcepub fn emit(&self, w: &mut PayloadInformationElement<&mut [u8]>)
pub fn emit(&self, w: &mut PayloadInformationElement<&mut [u8]>)
Emit the Payload Information Element into a buffer.
Trait Implementations§
Source§impl From<&PayloadInformationElementRepr> for PayloadGroupId
impl From<&PayloadInformationElementRepr> for PayloadGroupId
Source§fn from(val: &PayloadInformationElementRepr) -> Self
fn from(val: &PayloadInformationElementRepr) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PayloadInformationElementRepr
impl RefUnwindSafe for PayloadInformationElementRepr
impl Send for PayloadInformationElementRepr
impl Sync for PayloadInformationElementRepr
impl Unpin for PayloadInformationElementRepr
impl UnwindSafe for PayloadInformationElementRepr
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