pub struct LpPacket {
pub sequence: Option<Sequence>,
pub frag_index: Option<FragIndex>,
pub frag_count: Option<FragCount>,
pub nack: Option<Nack>,
pub other_headers: Vec<UnknownHeader>,
pub fragment: Option<Fragment>,
}
Fields§
§sequence: Option<Sequence>
§frag_index: Option<FragIndex>
§frag_count: Option<FragCount>
§nack: Option<Nack>
§other_headers: Vec<UnknownHeader>
§fragment: Option<Fragment>
Implementations§
Trait Implementations§
Source§impl Tlv for LpPacket
impl Tlv for LpPacket
Source§fn inner_size(&self) -> usize
fn inner_size(&self) -> usize
The size of the payload contained within this TLV Read more
Source§fn critical() -> bool
fn critical() -> bool
Whether the TLV is critical, see
tlv_critical
impl Eq for LpPacket
impl StructuralPartialEq for LpPacket
Auto Trait Implementations§
impl !Freeze for LpPacket
impl RefUnwindSafe for LpPacket
impl Send for LpPacket
impl Sync for LpPacket
impl Unpin for LpPacket
impl UnwindSafe for LpPacket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more