Enum discord_sdk::error::Error
source · pub enum Error {
Show 15 variants
NoConnection,
ChannelFull,
ChannelDisconnected,
Close(String),
CorruptConnection,
MissingField(&'static str),
InvalidField(&'static str),
Io {
action: &'static str,
error: Error,
},
TooManyUrls,
Json(Error),
UnknownVariant {
kind: &'static str,
value: u32,
},
AppRegistration(Error),
Discord(DiscordErr),
NonCanonicalLobbyActivitySecret,
TimedOut,
}
Variants§
NoConnection
ChannelFull
ChannelDisconnected
Close(String)
CorruptConnection
MissingField(&'static str)
InvalidField(&'static str)
Io
TooManyUrls
Json(Error)
UnknownVariant
AppRegistration(Error)
Discord(DiscordErr)
NonCanonicalLobbyActivitySecret
TimedOut
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<DiscordErr> for Error
impl From<DiscordErr> for Error
source§fn from(source: DiscordErr) -> Self
fn from(source: DiscordErr) -> Self
Converts to this type from the input type.
source§impl<T> From<TrySendError<T>> for Error
impl<T> From<TrySendError<T>> for Error
source§fn from(se: TrySendError<T>) -> Self
fn from(se: TrySendError<T>) -> Self
Converts to this type from the input type.