[][src]Struct ieee802154::mac::beacon::SuperframeSpecification

pub struct SuperframeSpecification {
    pub beacon_order: BeaconOrder,
    pub superframe_order: SuperframeOrder,
    pub final_cap_slot: u8,
    pub battery_life_extension: bool,
    pub pan_coordinator: bool,
    pub association_permit: bool,
}

Superframe specification

The superframe specification describes the organisation of frames in the air when using superframes and/or periodical beacons.

Fields

beacon_order: BeaconOrder

Beacon order, 0-15, where 15 is on demand.

Beacon interval = BaseSuperframeDuration × (2 ^ BeaconOrder)

superframe_order: SuperframeOrder

Superframe order, amount of time during wich this superframe is active

final_cap_slot: u8

final contention access period slot used

battery_life_extension: bool

Limit receiving of beacons for a period. Not used if beacon_order is OnDemand.

pan_coordinator: bool

Frame sent by a coordinator

association_permit: bool

The coordinator acceppts associations to the PAN

Implementations

impl SuperframeSpecification[src]

pub fn decode(buf: &mut dyn Buf) -> Result<Self, DecodeError>[src]

Decode superframe specification from byte buffer

Returns

Returns SuperframeSpecification and the number of bytes used are returned

Errors

This function returns an error, if the bytes either don't are enough or dont't contain valid data. Please refer to DecodeError for details.

pub fn encode(&self, buf: &mut dyn BufMut)[src]

Encode superframe specification into a byte buffer

Trait Implementations

impl Clone for SuperframeSpecification[src]

impl Copy for SuperframeSpecification[src]

impl Debug for SuperframeSpecification[src]

impl Eq for SuperframeSpecification[src]

impl Hash for SuperframeSpecification[src]

impl PartialEq<SuperframeSpecification> for SuperframeSpecification[src]

impl StructuralEq for SuperframeSpecification[src]

impl StructuralPartialEq for SuperframeSpecification[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.