[][src]Enum jnet::ieee802154::SrcDest

pub enum SrcDest {
    PanCoordToNode {
        pan_id: PanId,
        dest_addr: Addr,
    },
    NodeToPanCoord {
        pan_id: PanId,
        src_addr: Addr,
    },
    IntraPan {
        pan_id: PanId,
        src_addr: Addr,
        dest_addr: Addr,
    },
    InterPan {
        src_pan_id: PanId,
        src_addr: Addr,
        dest_pan_id: PanId,
        dest_addr: Addr,
    },
}

Source and destination address

Variants

PanCoordToNode

Source: PAN coordinator, Dest: some node in the PAN

Fields of PanCoordToNode

pan_id: PanId

PAN identifier

dest_addr: Addr

Address of the destination node

NodeToPanCoord

Source: some node, Dest: coordinator of the PAN the node belongs to

Fields of NodeToPanCoord

pan_id: PanId

PAN identifier

src_addr: Addr

Address of the source node

IntraPan

Both nodes are in the same PAN

Fields of IntraPan

pan_id: PanId

PAN identifier

src_addr: Addr

Address of the source node

dest_addr: Addr

Address of the destination node

InterPan

Nodes are in different PANs

Fields of InterPan

src_pan_id: PanId

Identifier of the PAN the source node is in

src_addr: Addr

Address of the source node

dest_pan_id: PanId

Identifier of the PAN the destination node is in

dest_addr: Addr

Address of the destination node

Auto Trait Implementations

impl Unpin for SrcDest

impl Send for SrcDest

impl Sync for SrcDest

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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

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

type Output = T

Should always be Self