pub enum ShardState {
Disconnected,
Connecting,
Handshaking,
Identifying,
Resuming,
Connected,
Reconnecting,
Disconnecting,
}Expand description
Shard connection state.
Variants§
Disconnected
Disconnected, not running.
Connecting
Attempting to connect.
Handshaking
Connected, waiting for Hello.
Identifying
Sending Identify.
Resuming
Resuming a previous session.
Connected
Fully connected and receiving events.
Reconnecting
Reconnecting after disconnect.
Disconnecting
Shutting down.
Trait Implementations§
Source§impl Clone for ShardState
impl Clone for ShardState
Source§fn clone(&self) -> ShardState
fn clone(&self) -> ShardState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShardState
impl Debug for ShardState
Source§impl PartialEq for ShardState
impl PartialEq for ShardState
impl Copy for ShardState
impl Eq for ShardState
impl StructuralPartialEq for ShardState
Auto Trait Implementations§
impl Freeze for ShardState
impl RefUnwindSafe for ShardState
impl Send for ShardState
impl Sync for ShardState
impl Unpin for ShardState
impl UnwindSafe for ShardState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.