[][src]Enum rumq_broker::RouterMessage

pub enum RouterMessage {
    Connect(Connection),
    Packet(Packet),
    Packets(VecDeque<Packet>),
    Death(String),
    Pending(VecDeque<Publish>),
}

Router message to orchestrate data between connections. We can also use this to send control signals to connections to modify their behavior dynamically from the console

Variants

Connect(Connection)

Client id and connection handle

Packet(Packet)

Packet

Packets(VecDeque<Packet>)

Packets

Death(String)

Disconnects a client from active connections list. Will handling

Pending(VecDeque<Publish>)

Pending messages of the previous connection

Trait Implementations

impl Debug for RouterMessage[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, 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.