[][src]Enum nats_types::ProtocolMessage

pub enum ProtocolMessage {
    Unsubscribe(UnsubscribeMessage),
    Publish(PublishMessage),
    Message(DeliveredMessage),
    Subscribe(SubscribeMessage),
    Ping,
    Pong,
    Ok,
    Error(String),
    Info(ServerInformation),
    Connect(ConnectionInformation),
}

An enum whose variants are all of the available protocol messages as defined by the NATS protocol documentation.

Variants

Unsubscribe(UnsubscribeMessage)Publish(PublishMessage)Message(DeliveredMessage)Subscribe(SubscribeMessage)PingPongOkError(String)Info(ServerInformation)Connect(ConnectionInformation)

Trait Implementations

impl PartialEq<ProtocolMessage> for ProtocolMessage[src]

impl Clone for ProtocolMessage[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ProtocolMessage[src]

impl Display for ProtocolMessage[src]

impl FromStr for ProtocolMessage[src]

type Err = NatsParseError

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.