[][src]Enum rusty_junctions::types::Packet

pub enum Packet {
    Message {
        channel_id: ChannelId,
        msg: Message,
    },
    NewChannelIdRequest {
        return_sender: Sender<ChannelId>,
    },
    AddJoinPatternRequest {
        join_pattern: JoinPattern,
    },
    ShutDownRequest,
}

Standardized packet to be used to send messages of various types on the channels of a Junction.

Variants

Message

General message send from channel identified by channel_id.

Fields of Message

channel_id: ChannelIdmsg: Message
NewChannelIdRequest

Request a new channel ID from the Junction so a new channel can be constructed. New ID will be sent back through return_sender.

Fields of NewChannelIdRequest

return_sender: Sender<ChannelId>
AddJoinPatternRequest

Request adding a new Join Pattern to the Junction.

Fields of AddJoinPatternRequest

join_pattern: JoinPattern
ShutDownRequest

Request the internal control thread managing the Messages to shut down.

Auto Trait Implementations

impl !RefUnwindSafe for Packet

impl Send for Packet

impl !Sync for Packet

impl Unpin for Packet

impl !UnwindSafe for Packet

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, 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.