[][src]Enum tdn_types::message::LayerSendMessage

pub enum LayerSendMessage {
    Upper(GroupIdVec<u8>),
    Lower(GroupIdVec<u8>),
    UpperJoin(GroupId),
    UpperLeave(GroupId),
    LowerJoin(GroupIdGroupIdu32SocketAddrVec<u8>),
    LowerJoinResult(GroupIdGroupIdu32bool),
}

channel message send to TDN Layers.

Variants

Upper(GroupIdVec<u8>)

Upper layer send to here, and return send to upper.

Lower(GroupIdVec<u8>)

Lower layer send to here, and return send to lower.

UpperJoin(GroupId)

start a upper layer service in layer listen. outside -> tdn.

UpperLeave(GroupId)

remove a upper layer service in layer listen. outside -> tdn.

LowerJoin(GroupIdGroupIdu32SocketAddrVec<u8>)

request for link to a upper service, and as a lower. (request_group, remote_group, uuid, addr, data).

LowerJoinResult(GroupIdGroupIdu32bool)

request a upper result. (request_group, remote_group, uuid, result).

Trait Implementations

impl Clone for LayerSendMessage[src]

impl Debug for LayerSendMessage[src]

impl Eq for LayerSendMessage[src]

impl PartialEq<LayerSendMessage> for LayerSendMessage[src]

impl StructuralEq for LayerSendMessage[src]

impl StructuralPartialEq for LayerSendMessage[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> Same<T> for T

type Output = T

Should always be Self

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.