usestd::error::Error as StdError;usestd::fmt;/// An error returned from the [`Client`].
////// This is always wrapped within the library's generic [`Error::Client`] variant.
////// [`Client`]: super::Client
/// [`Error::Client`]: crate::Error::Client
#[derive(Clone, Debug, Eq, Hash, PartialEq)]#[non_exhaustive]pubenumError{/// When a shard has completely failed to reboot after resume and/or reconnect attempts.
ShardBootFailure,/// When all shards that the client is responsible for have shutdown with an error.
Shutdown,}implfmt::Display forError{fnfmt(&self, f:&mutfmt::Formatter<'_>)->fmt::Result{matchself{Self::ShardBootFailure => f.write_str("Failed to (re-)boot a shard"),Self::Shutdown => f.write_str("The clients shards shutdown"),}}}implStdError forError{}