Enum rsmq_async::RsmqError
source · pub enum RsmqError {
Show 17 variants
RunError(RunError<RedisError>),
RedisError(RedisError),
NoConnectionAcquired,
NoAttributeSupplied,
MissingParameter(String),
InvalidFormat(String),
InvalidValue(String, String, String),
MessageNotString,
MessageTooLong,
QueueNotFound,
QueueExists,
BugCreatingRandonValue,
CannotParseVT,
CannotParseDelay,
CannotParseMaxsize,
CannotDecodeMessage(Vec<u8>),
TokioStart(Different<Error>),
}
Expand description
This is the error type for any oprtation with this
library. It derives ThisError
Variants§
RunError(RunError<RedisError>)
RedisError(RedisError)
NoConnectionAcquired
NoAttributeSupplied
MissingParameter(String)
InvalidFormat(String)
InvalidValue(String, String, String)
MessageNotString
MessageTooLong
QueueNotFound
QueueExists
BugCreatingRandonValue
CannotParseVT
CannotParseDelay
CannotParseMaxsize
CannotDecodeMessage(Vec<u8>)
TokioStart(Different<Error>)
Trait Implementations§
source§impl Error for RsmqError
impl Error for RsmqError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<RedisError> for RsmqError
impl From<RedisError> for RsmqError
source§fn from(source: RedisError) -> Self
fn from(source: RedisError) -> Self
Converts to this type from the input type.
source§impl From<RunError<RedisError>> for RsmqError
impl From<RunError<RedisError>> for RsmqError
source§fn from(source: RunError<RedisError>) -> Self
fn from(source: RunError<RedisError>) -> Self
Converts to this type from the input type.
source§impl PartialEq for RsmqError
impl PartialEq for RsmqError
impl StructuralPartialEq for RsmqError
Auto Trait Implementations§
impl Freeze for RsmqError
impl !RefUnwindSafe for RsmqError
impl Send for RsmqError
impl Sync for RsmqError
impl Unpin for RsmqError
impl !UnwindSafe for RsmqError
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