pub enum MessageBrokerError {
Connection(String),
Setup(String),
Publishing(String),
Receiving(String),
Acknowledgment(String),
Subscription(String),
Flush(String),
Serde(Error),
Other(Box<dyn Error + Send + Sync>),
NatsSubscribe(SubscribeError),
NatsPublish(Error<PublishErrorKind>),
}Variants§
Connection(String)
Setup(String)
Publishing(String)
Receiving(String)
Acknowledgment(String)
Subscription(String)
Flush(String)
Serde(Error)
Other(Box<dyn Error + Send + Sync>)
NatsSubscribe(SubscribeError)
NatsPublish(Error<PublishErrorKind>)
Trait Implementations§
Source§impl Debug for MessageBrokerError
impl Debug for MessageBrokerError
Source§impl Display for MessageBrokerError
impl Display for MessageBrokerError
Source§impl Error for MessageBrokerError
impl Error for MessageBrokerError
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 From<Error<PublishErrorKind>> for MessageBrokerError
impl From<Error<PublishErrorKind>> for MessageBrokerError
Source§fn from(source: Error<PublishErrorKind>) -> Self
fn from(source: Error<PublishErrorKind>) -> Self
Converts to this type from the input type.
Source§impl From<Error> for MessageBrokerError
impl From<Error> for MessageBrokerError
Source§impl From<SubscribeError> for MessageBrokerError
impl From<SubscribeError> for MessageBrokerError
Source§fn from(source: SubscribeError) -> Self
fn from(source: SubscribeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MessageBrokerError
impl !RefUnwindSafe for MessageBrokerError
impl Send for MessageBrokerError
impl Sync for MessageBrokerError
impl Unpin for MessageBrokerError
impl UnsafeUnpin for MessageBrokerError
impl !UnwindSafe for MessageBrokerError
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