[][src]Module twilight_gateway::cluster

The Cluster is a manager for running and maintaing multiple shards, bringing their event streams into one unified stream.

Examples

Start a cluster of 10 shards and print when a shard is connected, disconnected, and when new commands come in:

Re-exports

pub use self::config::ClusterConfig;
pub use self::error::Error;
pub use self::error::Result;

Modules

config
error

The error type of why errors occur in the cluster module.

Structs

Cluster

A manager for multiple shards.