pub enum SubError<DecodeErrorType: DeErr + Send + Sync> {
BrokerError(BrokerError),
AckError(AckError),
DecodeError(DecodeError<DecodeErrorType>),
}Expand description
Error type for subscription operations in the messaging system.
Variants§
BrokerError(BrokerError)
Broker error.
AckError(AckError)
Acknowledgment error.
DecodeError(DecodeError<DecodeErrorType>)
Decoding error for deserialization failures.
Trait Implementations§
Source§impl<DecodeErrorType: DeErr + Send + Sync> Display for SubError<DecodeErrorType>where
DecodeError<DecodeErrorType>: Display,
impl<DecodeErrorType: DeErr + Send + Sync> Display for SubError<DecodeErrorType>where
DecodeError<DecodeErrorType>: Display,
Source§impl<DecodeErrorType: DeErr + Send + Sync> Error for SubError<DecodeErrorType>
impl<DecodeErrorType: DeErr + Send + Sync> Error for SubError<DecodeErrorType>
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()
Auto Trait Implementations§
impl<DecodeErrorType> Freeze for SubError<DecodeErrorType>where
DecodeErrorType: Freeze,
impl<DecodeErrorType> !RefUnwindSafe for SubError<DecodeErrorType>
impl<DecodeErrorType> Send for SubError<DecodeErrorType>
impl<DecodeErrorType> Sync for SubError<DecodeErrorType>
impl<DecodeErrorType> Unpin for SubError<DecodeErrorType>where
DecodeErrorType: Unpin,
impl<DecodeErrorType> UnsafeUnpin for SubError<DecodeErrorType>where
DecodeErrorType: UnsafeUnpin,
impl<DecodeErrorType> !UnwindSafe for SubError<DecodeErrorType>
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