Enum indradb_proto::ClientError [−][src]
pub enum ClientError {
Conversion {
inner: ConversionError,
},
UnexpectedResponseId {
expected: u32,
actual: u32,
},
UnexpectedEmptyResponse {
request_id: u32,
},
Grpc {
inner: Status,
},
Transport {
inner: TonicTransportError,
},
ChannelClosed,
}
Expand description
The error returned if a client operation failed.
Variants
Conversion between an IndraDB and its protobuf equivalent failed.
Fields of Conversion
inner: ConversionError
A gRPC stream response had an unexpected response ID, implying a bug.
A gRPC stream response had an unexpected empty body, implying a bug.
Fields of UnexpectedEmptyResponse
request_id: u32
A gRPC error.
Fields of Grpc
inner: Status
A transport error.
Fields of Transport
inner: TonicTransportError
The gRPC channel has been closed.
Trait Implementations
Performs the conversion.
Performs the conversion.
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
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
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