Enum exar_net::TcpMessage [] [src]

pub enum TcpMessage {
    Connect(StringOption<String>, Option<String>),
    Connected,
    Publish(Event),
    Published(u64),
    Subscribe(boolu64Option<u64>, Option<String>),
    Subscribed,
    Event(Event),
    EndOfEventStream,
    Error(DatabaseError),
}

A list specifying categories of TCP message.

Variants

Message used to initialize a connection to Exar DB.

Message used to acknowledge a successful connection.

Message used to publish an event into a collection.

Message used to acknowledge a successfully published event.

Message used to subscribe to an event stream.

Message used to acknowledge a successful subscription.

Message containing an event.

Message signaling the end of an event stream.

Message containing an error.

Trait Implementations

impl Clone for TcpMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TcpMessage
[src]

Formats the value using the given formatter.

impl PartialEq for TcpMessage
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for TcpMessage
[src]

impl ToTabSeparatedString for TcpMessage
[src]

Returns a tab-separated string from the value.

impl FromTabSeparatedStr for TcpMessage
[src]

Returns an instance of Self from a tab-separated string slice or a ParseError if a failure occurs while parsing the string. Read more

impl Display for TcpMessage
[src]

Formats the value using the given formatter. Read more