[−][src]Enum serenity::gateway::GatewayError
An error that occurred while attempting to deal with the gateway.
Note that - from a user standpoint - there should be no situation in which you manually handle these.
Variants (Non-exhaustive)
There was an error building a URL.
Closed(Option<CloseFrame<'static>>)
The connection closed, potentially uncleanly.
Expected a Hello during a handshake
When there was an error sending a heartbeat.
When invalid authentication (a bad token) was sent in the IDENTIFY.
Expected a Ready or an InvalidateSession
An indicator that an unknown opcode was received from the gateway.
When invalid sharding data was sent in the IDENTIFY.
Examples
Sending a shard ID of 5 when sharding with 3 total is considered invalid.
When no authentication was sent in the IDENTIFY.
When a session Id was expected (for resuming), but was not present.
When a shard would have too many guilds assigned to it.
Examples
When sharding 5500 guilds on 2 shards, at least one of the shards will have over the maximum number of allowed guilds per shard.
This limit is currently 2500 guilds per shard.
Failed to reconnect after a number of attempts.
When undocumented gateway intents are provided.
When disallowed gatewax intents are provided.
If an connection has been established but priviliged gateway intents were provided without enabling them prior.
Trait Implementations
impl Clone for Error
[src]
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for Error
[src]
fn from(e: GatewayError) -> Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,