pub enum TlqError {
Connection(String),
Timeout(u64),
Server {
status: u16,
message: String,
},
Validation(String),
Serialization(Error),
Io(Error),
MaxRetriesExceeded {
max_retries: u32,
},
MessageTooLarge {
size: usize,
},
}Variants§
Connection(String)
Timeout(u64)
Server
Validation(String)
Serialization(Error)
Io(Error)
MaxRetriesExceeded
MessageTooLarge
Implementations§
Trait Implementations§
Source§impl Error for TlqError
impl Error for TlqError
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 Freeze for TlqError
impl !RefUnwindSafe for TlqError
impl Send for TlqError
impl Sync for TlqError
impl Unpin for TlqError
impl !UnwindSafe for TlqError
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