Enum connect::MessageType[][src]

pub enum MessageType {
    Read,
    Write,
}

Represents type of the message received from a client.

Why is this important?

Connect servers handle read and write messages differently to optimize performance.

In a connect cluster, a leader is elected who is responsible for handling and replicating all the writes to other nodes in the cluster. In case of read queries, leader can be freed by deligating reads to other nodes.

Variants

Represents a read only message

Represents a write message

Trait Implementations

impl Debug for MessageType
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for MessageType

impl Sync for MessageType