[][src]Struct twilight_gateway::cluster::Config

pub struct Config { /* fields omitted */ }

Built configuration for a Cluster.

Implementations

impl Config[src]

pub fn http_client(&self) -> &Client[src]

Return an immutable reference to the twilight_http client used by the cluster and shards to get the gateway information.

Refer to ClusterBuilder::http_client for the default value.

pub fn shard_config(&self) -> &ShardConfig[src]

Return an immutable reference to the configuration used to create shards.

Refer to ShardBuilder's methods for the default values.

pub fn shard_scheme(&self) -> &ShardScheme[src]

Return an immutable reference to the shard scheme used to start shards.

Refer to ClusterBuilder::shard_scheme for the default value.

pub fn queue(&self) -> &Arc<Box<dyn Queue>>[src]

Return an immutable reference to the queue used for initiating shard sessions.

Trait Implementations

impl Debug for Config[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,