Enum indradb_proto::ClientError
source · pub enum ClientError {
Conversion {
inner: ConversionError,
},
Grpc {
inner: Status,
},
Transport {
inner: TonicTransportError,
},
ChannelClosed,
}
Expand description
The error returned if a client operation failed.
Variants§
Conversion
Fields
§
inner: ConversionError
Conversion between an IndraDB and its protobuf equivalent failed.
Grpc
A gRPC error.
Transport
Fields
§
inner: TonicTransportError
A transport error.
ChannelClosed
The gRPC channel has been closed.
Trait Implementations§
source§impl Debug for ClientError
impl Debug for ClientError
source§impl Display for ClientError
impl Display for ClientError
source§impl Error for ClientError
impl Error for ClientError
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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 From<ConversionError> for ClientError
impl From<ConversionError> for ClientError
source§fn from(err: ConversionError) -> Self
fn from(err: ConversionError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ClientError
impl From<Error> for ClientError
source§fn from(err: TonicTransportError) -> Self
fn from(err: TonicTransportError) -> Self
Converts to this type from the input type.
source§impl<T> From<SendError<T>> for ClientError
impl<T> From<SendError<T>> for ClientError
Auto Trait Implementations§
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request