Enum connect::ServiceType[][src]

pub enum ServiceType {
    Persistent,
    InMemory,
}

This enum represents the type of service you're implementing using connect framework.

Why is this important?

Connect framework optimizes distributed consensus handling based on this.

Variants

Represents a persistent service, i.e., whenever the node restarts, it will maintain its last known state.

Represents an in-memory service, i.e., whenever the node restarts, it will forget about its last state and connect framwork will have to apply all the previously received commands to bring it in current state.

Auto Trait Implementations

impl Send for ServiceType

impl Sync for ServiceType