pub enum TwilightError {
Twilight(Error),
TwilightParsing(DeserializeBodyError),
}Expand description
An error was returned from an internal twilight_http call.
Variants§
Twilight(Error)
TwilightParsing(DeserializeBodyError)
Trait Implementations§
Source§impl Debug for TwilightError
impl Debug for TwilightError
Source§impl Display for TwilightError
impl Display for TwilightError
Source§impl Error for TwilightError
impl Error for TwilightError
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<DeserializeBodyError> for TwilightError
impl From<DeserializeBodyError> for TwilightError
Source§fn from(source: DeserializeBodyError) -> Self
fn from(source: DeserializeBodyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for TwilightError
impl From<Error> for TwilightError
Source§impl From<TwilightError> for HandleError
impl From<TwilightError> for HandleError
Source§fn from(source: TwilightError) -> Self
fn from(source: TwilightError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TwilightError
impl !RefUnwindSafe for TwilightError
impl Send for TwilightError
impl Sync for TwilightError
impl Unpin for TwilightError
impl UnsafeUnpin for TwilightError
impl !UnwindSafe for TwilightError
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