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

pub struct GuaranteedTimeSlotDescriptor { /* fields omitted */ }

Descriptor of the guaranteed time slots (GTSs)

Implementations

impl GuaranteedTimeSlotDescriptor[src]

pub fn new() -> Self[src]

Create a new empty slot

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

Decode guaranteed time slot descriptor from byte buffer

Returns

Returns GuaranteedTimeSlotDescriptor 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 descriptor into byte buffer

Trait Implementations

impl Clone for GuaranteedTimeSlotDescriptor[src]

impl Copy for GuaranteedTimeSlotDescriptor[src]

impl Debug for GuaranteedTimeSlotDescriptor[src]

impl Eq for GuaranteedTimeSlotDescriptor[src]

impl Hash for GuaranteedTimeSlotDescriptor[src]

impl PartialEq<GuaranteedTimeSlotDescriptor> for GuaranteedTimeSlotDescriptor[src]

impl StructuralEq for GuaranteedTimeSlotDescriptor[src]

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