pub enum RpcError {
NoSuchService(String),
Timeout,
AlreadyConnected,
NotConnected,
ConnectionFault(String),
EncoderFault(String),
Other(String),
}
Expand description
A set of errors that occur when connecting to services
Variants§
NoSuchService(String)
No such service was found by the broker
Timeout
The selected recipient didn’t reply within the timeout
This may indicate that the requested service has crashed, is dealing with backpressure, or the broker is quietly dropping requests.
AlreadyConnected
Tried connecting to a service that’s already connected
NotConnected
Failed to perform action that requires a connection
ConnectionFault(String)
Invalid connection: performing the last operation has failed
EncoderFault(String)
Encoding or decoding a payload failed
Other(String)
Any other failure with it’s error message string
Trait Implementations§
Source§impl From<TimeoutError> for RpcError
impl From<TimeoutError> for RpcError
Source§fn from(_: TimeoutError) -> RpcError
fn from(_: TimeoutError) -> RpcError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcError
impl RefUnwindSafe for RpcError
impl Send for RpcError
impl Sync for RpcError
impl Unpin for RpcError
impl UnwindSafe for RpcError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more