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
Read
Represents a read only message
Write
Represents a write message
Trait Implementations
impl Debug for MessageType
[src]
impl Debug for MessageType
Auto Trait Implementations
impl Send for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Sync for MessageType