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

pub struct GuaranteedTimeSlotInformation {
    pub permit: bool,
    // some fields omitted
}

Information of the guaranteed time slots (GTSs)

Fields

permit: bool

Permit GTS

Implementations

impl GuaranteedTimeSlotInformation[src]

pub fn new() -> Self[src]

Create a new empty GTS information

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

Decode guaranteed time slot information from byte buffer

Returns

Returns GuaranteedTimeSlotInformation 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 guaranteed time slot information into a byte buffer

pub fn slots(&self) -> &[GuaranteedTimeSlotDescriptor][src]

Get the slots as a slice

Trait Implementations

impl Clone for GuaranteedTimeSlotInformation[src]

impl Copy for GuaranteedTimeSlotInformation[src]

impl Debug for GuaranteedTimeSlotInformation[src]

impl Eq for GuaranteedTimeSlotInformation[src]

impl Hash for GuaranteedTimeSlotInformation[src]

impl PartialEq<GuaranteedTimeSlotInformation> for GuaranteedTimeSlotInformation[src]

impl StructuralEq for GuaranteedTimeSlotInformation[src]

impl StructuralPartialEq for GuaranteedTimeSlotInformation[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.