[][src]Enum serenity::client::bridge::gateway::ShardManagerMessage

pub enum ShardManagerMessage {
    Restart(ShardId),
    ShardUpdate {
        id: ShardId,
        latency: Option<StdDuration>,
        stage: ConnectionStage,
    },
    Shutdown(ShardId),
    ShutdownAll,
    ShutdownInitiated,
}

A message for a ShardManager relating to an operation with a shard.

Variants

Restart(ShardId)

Indicator that a ShardManagerMonitor should restart a shard.

ShardUpdate

An update from a shard runner,

Fields of ShardUpdate

id: ShardIdlatency: Option<StdDuration>stage: ConnectionStage
Shutdown(ShardId)

Indicator that a ShardManagerMonitor should fully shutdown a shard without bringing it back up.

ShutdownAll

Indicator that a ShardManagerMonitor should fully shutdown all shards and end its monitoring process for the ShardManager.

ShutdownInitiated

Indicator that a ShardManager has initiated a shutdown, and for the component that receives this to also shutdown with no further action taken.

Trait Implementations

impl Clone for ShardManagerMessage[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Ord for ShardManagerMessage[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl PartialOrd<ShardManagerMessage> for ShardManagerMessage[src]

impl PartialEq<ShardManagerMessage> for ShardManagerMessage[src]

impl Eq for ShardManagerMessage[src]

impl Debug for ShardManagerMessage[src]

impl Hash for ShardManagerMessage[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> UnsafeAny for T where
    T: Any