[][src]Enum ieee802154::mac::command::Command

pub enum Command {
    AssociationRequest(CapabilityInformation),
    AssociationResponse(ShortAddressAssociationStatus),
    DisassociationNotification(DisassociationReason),
    DataRequest,
    PanIdConflictNotification,
    OrphanNotification,
    BeaconRequest,
    CoordinatorRealignment(CoordinatorRealignmentData),
    GuaranteedTimeSlotRequest(GuaranteedTimeSlotCharacteristics),
}

MAC commands

Variants

AssociationRequest(CapabilityInformation)

Association request, request association to a PAN

AssociationResponse(ShortAddressAssociationStatus)

Association response, response to a association request

DisassociationNotification(DisassociationReason)

Notification of disassociation from the PAN

DataRequest

Request for data

PanIdConflictNotification

Notification of PAN idetifier conflict

OrphanNotification

Notification of orphan

BeaconRequest

Request a beacon

CoordinatorRealignment(CoordinatorRealignmentData)

Coordinator re-alignment, the coordinator will change PAN parameters

GuaranteedTimeSlotRequest(GuaranteedTimeSlotCharacteristics)

Request a guaranteed time slot (GTS)

Implementations

impl Command[src]

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

Decode MAC command from byte buffer

Returns

Returns Command 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 the Command into a byte buffer

Trait Implementations

impl Clone for Command[src]

impl Copy for Command[src]

impl Debug for Command[src]

impl Eq for Command[src]

impl Hash for Command[src]

impl PartialEq<Command> for Command[src]

impl StructuralEq for Command[src]

impl StructuralPartialEq for Command[src]

Auto Trait Implementations

impl Send for Command

impl Sync for Command

impl Unpin for Command

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.