[−][src]Enum panda::PandaError
The error enum for Panda
Variants
Returned when there was an authentication error and the gateway is closed
Returned when "discord" fails to connect to the gateway, it can only be returned at the first connection, all reconnections are handled by "discord"
Returned when the gateway connection is unexpected closed
Returned when "discord" receives a unknown message format
Returned when panda sent an invalid Opcode
Returned when panda sent an invalid payload
Returned when "discord" recevies a invalid message format
Returned when "discord" receives a unexpected message format like IDENTIFY
Returned when "discord" receives a not zlib compressed payload
Returned when "discord" http client didn't receive a response of Discord API
Returned when http request format was invalid
Returned when http request has an invalid token
Returned when the client doesn't have enough permissions
Returned when the http request URL had invalid parameters, such as wrong {channel_id}
Returned when the gateway couldn't close the connection succesfully
Returned when you send an invalid shard
Returned when you handled too many guilds, and shard is necessary
SerdeError(Error)
serde_json
tungstenite
Trait Implementations
impl Debug for PandaError
[src]
impl Display for PandaError
[src]
impl Error for PandaError
[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 PandaError
[src]
impl From<Error> for PandaError
[src]
impl From<Error> for PandaError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PandaError
impl Send for PandaError
impl Sync for PandaError
impl Unpin for PandaError
impl !UnwindSafe for PandaError
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, 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> 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>,