Enum torn_api::ApiClientError
source · [−]pub enum ApiClientError<C>where
C: Error,{
Client(C),
Response(ResponseError),
}
Variants
Client(C)
Response(ResponseError)
Trait Implementations
sourceimpl<C: Debug> Debug for ApiClientError<C>where
C: Error,
impl<C: Debug> Debug for ApiClientError<C>where
C: Error,
sourceimpl<C> Display for ApiClientError<C>where
C: Error,
C: Display,
impl<C> Display for ApiClientError<C>where
C: Error,
C: Display,
sourceimpl<C> Error for ApiClientError<C>where
C: Error,
C: Error,
Self: Debug + Display,
impl<C> Error for ApiClientError<C>where
C: Error,
C: 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<C> From<ResponseError> for ApiClientError<C>where
C: Error,
impl<C> From<ResponseError> for ApiClientError<C>where
C: Error,
sourcefn from(source: ResponseError) -> Self
fn from(source: ResponseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<C> !RefUnwindSafe for ApiClientError<C>
impl<C> Send for ApiClientError<C>where
C: Send,
impl<C> Sync for ApiClientError<C>where
C: Sync,
impl<C> Unpin for ApiClientError<C>where
C: Unpin,
impl<C> !UnwindSafe for ApiClientError<C>
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