pub struct Oam {
pub id: OamId,
pub body: ZExtBody,
pub ext_qos: QoSType,
pub ext_tstamp: Option<TimestampType>,
}Expand description
Flags:
- E |: Encoding The encoding of the extension
- E/
- Z: Extension If Z==1 then at least one extension is present
7 6 5 4 3 2 1 0
+-+-+-+-+-+-+-+-+
|X|ENC| OAM |
+-+-+-+---------+
~ id:z16 ~
+---------------+
% length % -- If ENC == Z64 || ENC == ZBuf (z32)
+---------------+
~ [u8] ~ -- If ENC == ZBuf
+---------------+
Encoding:
- 0b00: Unit
- 0b01: Z64
- 0b10: ZBuf
- 0b11: ReservedFields§
§id: OamId§body: ZExtBody§ext_qos: QoSType§ext_tstamp: Option<TimestampType>Trait Implementations§
impl Eq for Oam
impl StructuralPartialEq for Oam
Auto Trait Implementations§
impl Freeze for Oam
impl !RefUnwindSafe for Oam
impl Send for Oam
impl Sync for Oam
impl Unpin for Oam
impl !UnwindSafe for Oam
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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