pub enum RecordError {
Truncated {
at: usize,
},
Utf8 {
at: usize,
source: Utf8Error,
},
Tag {
tag: u8,
},
Trailing {
remaining: usize,
},
}Expand description
A damaged record.
Variants§
Truncated
The bytes end before the record does.
Utf8
A string is not UTF-8.
Tag
A property value tag is not one this build knows.
Trailing
Bytes remain after the record.
Trait Implementations§
Source§impl Clone for RecordError
impl Clone for RecordError
Source§fn clone(&self) -> RecordError
fn clone(&self) -> RecordError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecordError
impl Debug for RecordError
Source§impl Display for RecordError
impl Display for RecordError
impl Eq for RecordError
Source§impl Error for RecordError
impl Error for RecordError
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 RecordError
impl PartialEq for RecordError
impl StructuralPartialEq for RecordError
Auto Trait Implementations§
impl Freeze for RecordError
impl RefUnwindSafe for RecordError
impl Send for RecordError
impl Sync for RecordError
impl Unpin for RecordError
impl UnsafeUnpin for RecordError
impl UnwindSafe for RecordError
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