pub enum QueueCodecError {
Truncated,
TrailingBytes {
expected: usize,
actual: usize,
},
FieldTooLarge {
field: &'static str,
len: u64,
},
UnsupportedVersion {
expected: u8,
found: u8,
},
InvalidFieldValue {
field: &'static str,
value: u64,
},
}Expand description
Error returned when queue codec records cannot be encoded or decoded.
Variants§
Truncated
Input ended before all required fields were present.
TrailingBytes
Input had extra bytes after the expected record length.
FieldTooLarge
A field length does not fit the codec.
UnsupportedVersion
Record version does not match this codec.
InvalidFieldValue
Field value is not in the valid domain.
Trait Implementations§
Source§impl Clone for QueueCodecError
impl Clone for QueueCodecError
Source§fn clone(&self) -> QueueCodecError
fn clone(&self) -> QueueCodecError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueueCodecError
impl Debug for QueueCodecError
Source§impl Display for QueueCodecError
impl Display for QueueCodecError
Source§impl Error for QueueCodecError
impl Error for QueueCodecError
1.30.0 · 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 PartialEq for QueueCodecError
impl PartialEq for QueueCodecError
impl Eq for QueueCodecError
impl StructuralPartialEq for QueueCodecError
Auto Trait Implementations§
impl Freeze for QueueCodecError
impl RefUnwindSafe for QueueCodecError
impl Send for QueueCodecError
impl Sync for QueueCodecError
impl Unpin for QueueCodecError
impl UnsafeUnpin for QueueCodecError
impl UnwindSafe for QueueCodecError
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