pub enum Error {
Codec(Box<dyn Error + Send + Sync>),
CallFailure(grpc_call_error),
RpcFailure(RpcStatus),
RpcFinished(Option<RpcStatus>),
RemoteStopped,
ShutdownFailed,
BindFail(String, u16),
QueueShutdown,
GoogleAuthenticationFailed,
InvalidMetadata(String),
}
Expand description
Errors generated from this library.
Variants
Codec(Box<dyn Error + Send + Sync>)
Codec error.
CallFailure(grpc_call_error)
Failed to start an internal async call.
RpcFailure(RpcStatus)
Rpc request fail.
RpcFinished(Option<RpcStatus>)
Try to write to a finished rpc call.
RemoteStopped
Remote is stopped.
ShutdownFailed
Failed to shutdown.
BindFail(String, u16)
Failed to bind.
QueueShutdown
gRPC completion queue is shutdown.
GoogleAuthenticationFailed
Failed to create Google default credentials.
InvalidMetadata(String)
Invalid format of metadata.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<DecodeError> for Error
impl From<DecodeError> for Error
sourcefn from(e: DecodeError) -> Error
fn from(e: DecodeError) -> Error
Converts to this type from the input type.
sourceimpl From<EncodeError> for Error
impl From<EncodeError> for Error
sourcefn from(e: EncodeError) -> Error
fn from(e: EncodeError) -> Error
Converts to this type from the input type.
sourceimpl From<ProtobufError> for Error
impl From<ProtobufError> for Error
sourcefn from(e: ProtobufError) -> Error
fn from(e: ProtobufError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more