pub enum RustRabbitError {
Connection(String),
Protocol(Error),
Serialization(String),
Configuration(String),
Consumer(String),
Publisher(String),
Retry(String),
Io(Error),
}Expand description
Main error type for rust-rabbit library
Variants§
Connection(String)
Protocol(Error)
Serialization(String)
Configuration(String)
Consumer(String)
Publisher(String)
Retry(String)
Io(Error)
Implementations§
Source§impl RustRabbitError
impl RustRabbitError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if the error is retryable
Sourcepub fn is_connection_error(&self) -> bool
pub fn is_connection_error(&self) -> bool
Check if the error indicates a connection issue
Sourcepub fn user_message(&self) -> String
pub fn user_message(&self) -> String
Get a user-friendly error message
Trait Implementations§
Source§impl Debug for RustRabbitError
impl Debug for RustRabbitError
Source§impl Display for RustRabbitError
impl Display for RustRabbitError
Source§impl Error for RustRabbitError
impl Error for RustRabbitError
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> for RustRabbitError
impl From<Error> for RustRabbitError
Source§impl From<Error> for RustRabbitError
impl From<Error> for RustRabbitError
Source§impl From<Error> for RustRabbitError
Convert serde_json errors to RustRabbitError
impl From<Error> for RustRabbitError
Convert serde_json errors to RustRabbitError
Source§impl From<ParseError> for RustRabbitError
Convert URL parsing errors to RustRabbitError
impl From<ParseError> for RustRabbitError
Convert URL parsing errors to RustRabbitError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RustRabbitError
impl !RefUnwindSafe for RustRabbitError
impl Send for RustRabbitError
impl Sync for RustRabbitError
impl Unpin for RustRabbitError
impl !UnwindSafe for RustRabbitError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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