Enum hrpc::client::error::ClientError [−][src]
pub enum ClientError<TransportError> {
EndpointError {
hrpc_error: HrpcError,
endpoint: Cow<'static, str>,
},
MessageDecode(DecodeBodyError),
ContentNotSupported,
Transport(TransportError),
IncompatibleSpecVersion,
}
Expand description
Errors that can occur within Client
operation.
Variants
EndpointError
Fields
hrpc_error: HrpcError
The hRPC error.
Occurs if an endpoint returns an error.
MessageDecode(DecodeBodyError)
Tuple Fields
Occurs if the data server responded with could not be decoded.
ContentNotSupported
Occurs if the data server responded with is not supported for decoding.
Transport(TransportError)
Occures if the underlying transport yields an error.
IncompatibleSpecVersion
Occurs if the spec implemented on server doesn’t match ours.
Implementations
pub fn map_transport_err<F, NewTransportError>(
self,
f: F
) -> ClientError<NewTransportError> where
F: FnOnce(TransportError) -> NewTransportError,
pub fn map_transport_err<F, NewTransportError>(
self,
f: F
) -> ClientError<NewTransportError> where
F: FnOnce(TransportError) -> NewTransportError,
Map the transport error.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<TransportError> !RefUnwindSafe for ClientError<TransportError>
impl<TransportError> Send for ClientError<TransportError> where
TransportError: Send,
impl<TransportError> Sync for ClientError<TransportError> where
TransportError: Sync,
impl<TransportError> Unpin for ClientError<TransportError> where
TransportError: Unpin,
impl<TransportError> !UnwindSafe for ClientError<TransportError>
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn vzip(self) -> V
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more