pub enum SegmentDecodeError {
InvalidSliceLength {
expected: usize,
got: usize,
},
MalformedSegment,
}Variants§
Trait Implementations§
Source§impl Debug for SegmentDecodeError
impl Debug for SegmentDecodeError
Source§impl Display for SegmentDecodeError
impl Display for SegmentDecodeError
Source§impl Error for SegmentDecodeError
impl Error for SegmentDecodeError
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()
Auto Trait Implementations§
impl Freeze for SegmentDecodeError
impl RefUnwindSafe for SegmentDecodeError
impl Send for SegmentDecodeError
impl Sync for SegmentDecodeError
impl Unpin for SegmentDecodeError
impl UnsafeUnpin for SegmentDecodeError
impl UnwindSafe for SegmentDecodeError
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