Enum drogue_client::error::ClientError [−][src]
pub enum ClientError<E> where
E: Error + Send + Sync + 'static, {
Client(Box<E>),
Request(String),
Service(ErrorInformation),
Token(Box<dyn Error + Send + Sync>),
Url(ParseError),
Syntax(Box<dyn Error + Send + Sync>),
}
Variants
Client(Box<E>)
An error from the underlying API client (e.g. reqwest).
Tuple Fields of Client
0: Box<E>
Request(String)
A local error, performing the request.
Tuple Fields of Request
0: String
Service(ErrorInformation)
A remote error, performing the request.
Tuple Fields of Service
A token provider error.
Url(ParseError)
Url error.
Tuple Fields of Url
0: ParseError
Syntax error.
Implementations
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<E> !RefUnwindSafe for ClientError<E>
impl<E> Send for ClientError<E>
impl<E> Sync for ClientError<E>
impl<E> Unpin for ClientError<E>
impl<E> !UnwindSafe for ClientError<E>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more