pub enum DiscordGPTError {
SerenityError(SerenityError),
JoinError(JoinError),
}
Variants§
SerenityError(SerenityError)
JoinError(JoinError)
Trait Implementations§
Source§impl Debug for DiscordGPTError
impl Debug for DiscordGPTError
Source§impl Display for DiscordGPTError
impl Display for DiscordGPTError
Source§impl Error for DiscordGPTError
impl Error for DiscordGPTError
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<Error> for DiscordGPTError
impl From<Error> for DiscordGPTError
Source§fn from(source: SerenityError) -> Self
fn from(source: SerenityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for DiscordGPTError
impl !RefUnwindSafe for DiscordGPTError
impl Send for DiscordGPTError
impl Sync for DiscordGPTError
impl Unpin for DiscordGPTError
impl !UnwindSafe for DiscordGPTError
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