pub enum Error<TransportError> {
Closed,
Aborted,
Shutdown,
Timeout,
Dropped,
Transport(TransportError),
}
Expand description
RPC error.
Variants§
Closed
Connection closed.
Aborted
Request was aborted by consumer/producer.
Shutdown
Consumer/producer was shut down.
NOTE: It may also be caused by connection being closed before consumer request was made.
Timeout
Consumer timed out.
Dropped
Consumer was dropped before request could complete.
Transport(TransportError)
Request message transport error.
Trait Implementations§
Source§impl<Transport> Error for Error<Transport>
impl<Transport> Error for Error<Transport>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<TransportError> From<ShutdownType> for Error<TransportError>
impl<TransportError> From<ShutdownType> for Error<TransportError>
Source§fn from(value: ShutdownType) -> Self
fn from(value: ShutdownType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<TransportError> Freeze for Error<TransportError>where
TransportError: Freeze,
impl<TransportError> RefUnwindSafe for Error<TransportError>where
TransportError: RefUnwindSafe,
impl<TransportError> Send for Error<TransportError>where
TransportError: Send,
impl<TransportError> Sync for Error<TransportError>where
TransportError: Sync,
impl<TransportError> Unpin for Error<TransportError>where
TransportError: Unpin,
impl<TransportError> UnwindSafe for Error<TransportError>where
TransportError: UnwindSafe,
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