pub struct Header<'a> {
pub frame_control: FrameControl,
pub destination: ShortAddress,
pub source: ShortAddress,
pub radius: u8,
pub sequence_number: u8,
pub destination_ieee: Option<IeeeAddress>,
pub source_ieee: Option<IeeeAddress>,
pub multicast_control: Option<MulticastControl>,
pub source_route_subframe: Option<SourceRouteSubframe<'a>>,
}Expand description
3.3.1 General NPDU Frame Format
Fields§
§frame_control: FrameControlSee Section 3.3.1.1.
destination: ShortAddressSee Section 3.3.1.2.
source: ShortAddressSee Section 3.3.1.3.
radius: u8See Section 3.3.1.4.
sequence_number: u8See Section 3.3.1.5.
destination_ieee: Option<IeeeAddress>Set only if FrameControl::destination_ieee_flag is true.
See Section 3.3.1.6.
source_ieee: Option<IeeeAddress>Set only if FrameControl::source_ieee_flag is true.
See Section 3.3.1.7.
multicast_control: Option<MulticastControl>Set only if FrameControl::multicast_flag is true.
See Section 3.3.1.8.
source_route_subframe: Option<SourceRouteSubframe<'a>>Set only if FrameControl::source_flag is true.
See Section 3.3.1.9.
Trait Implementations§
impl<'a> Eq for Header<'a>
impl<'a> StructuralPartialEq for Header<'a>
Auto Trait Implementations§
impl<'a> Freeze for Header<'a>
impl<'a> RefUnwindSafe for Header<'a>
impl<'a> Send for Header<'a>
impl<'a> Sync for Header<'a>
impl<'a> Unpin for Header<'a>
impl<'a> UnsafeUnpin for Header<'a>
impl<'a> UnwindSafe for Header<'a>
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