pub enum DiscordErr {
MismatchedResponse {
expected: CommandKind,
actual: CommandKind,
nonce: usize,
},
Api(DiscordApiErr),
}
Expand description
An error related to the actual use of the Discord API.
Variants§
Trait Implementations§
Source§impl Debug for DiscordErr
impl Debug for DiscordErr
Source§impl Display for DiscordErr
impl Display for DiscordErr
Source§impl Error for DiscordErr
impl Error for DiscordErr
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<DiscordApiErr> for DiscordErr
impl From<DiscordApiErr> for DiscordErr
Source§fn from(source: DiscordApiErr) -> Self
fn from(source: DiscordApiErr) -> Self
Converts to this type from the input type.
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.
Auto Trait Implementations§
impl Freeze for DiscordErr
impl RefUnwindSafe for DiscordErr
impl Send for DiscordErr
impl Sync for DiscordErr
impl Unpin for DiscordErr
impl UnwindSafe for DiscordErr
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