Enum twitch_api::client::CompatError
source · [−]pub enum CompatError<E> {
BodyError(Error),
Other(E),
}
Available on crate feature
client
only.Expand description
A compability shim for ensuring an error can represent hyper::Error
Variants
BodyError(Error)
An error occurrec when assembling the body
Other(E)
An error occurred
Trait Implementations
sourceimpl<E: Debug> Debug for CompatError<E>
impl<E: Debug> Debug for CompatError<E>
sourceimpl<E> Display for CompatError<E>where
E: Display,
impl<E> Display for CompatError<E>where
E: Display,
sourceimpl<E> Error for CompatError<E>where
E: Error,
Self: Debug + Display,
impl<E> Error for CompatError<E>where
E: Error,
Self: Debug + Display,
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl<E> From<E> for CompatError<E>
impl<E> From<E> for CompatError<E>
Auto Trait Implementations
impl<E> !RefUnwindSafe for CompatError<E>
impl<E> Send for CompatError<E>where
E: Send,
impl<E> Sync for CompatError<E>where
E: Sync,
impl<E> Unpin for CompatError<E>where
E: Unpin,
impl<E> !UnwindSafe for CompatError<E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more