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.