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

Connect(StringOption<String>, Option<String>)

Message used to initialize a connection to Exar DB.

Connected

Message used to acknowledge a successful connection.

Publish(Event)

Message used to publish an event into a collection.

Published(u64)

Message used to acknowledge a successfully published event.

Subscribe(boolu64Option<u64>, Option<String>)

Message used to subscribe to an event stream.

Subscribed

Message used to acknowledge a successful subscription.

Event(Event)

Message containing an event.

EndOfEventStream

Message signaling the end of an event stream.

Error(DatabaseError)

Message containing an error.

Trait Implementations

impl Eq for TcpMessage
[src]

impl PartialEq for TcpMessage
[src]

fn eq(&self, __arg_0: &TcpMessage) -> bool

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

fn ne(&self, __arg_0: &TcpMessage) -> bool

This method tests for !=.

impl Debug for TcpMessage
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for TcpMessage
[src]

fn clone(&self) -> TcpMessage

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl ToTabSeparatedString for TcpMessage
[src]

fn to_tab_separated_string(&self) -> String

Returns a tab-separated string from the value.

impl FromTabSeparatedStr for TcpMessage
[src]

fn from_tab_separated_str(s: &str) -> Result<Self, ParseError>

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]

fn fmt(&self, f: &mut Formatter) -> DisplayResult

Formats the value using the given formatter.