Enum torn_api::ApiClientError
source · pub enum ApiClientError<C>where
C: Error,{
Client(C),
Response(ResponseError),
}
Variants§
Client(C)
Response(ResponseError)
Trait Implementations§
source§impl<C> Error for ApiClientError<C>where
C: Error,
Self: Debug + Display,
impl<C> Error for ApiClientError<C>where C: Error, Self: Debug + Display,
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<C> From<ResponseError> for ApiClientError<C>where
C: Error,
impl<C> From<ResponseError> for ApiClientError<C>where C: Error,
source§fn 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§
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