pub enum LenError {
Truncated(NonZeroUsize),
ParseError,
}Expand description
MessageLen result
Variants§
Truncated(NonZeroUsize)
The message is truncated, and needs at least this many bytes to parse
ParseError
The message is invalid or exceeded size limits
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LenError
impl RefUnwindSafe for LenError
impl Send for LenError
impl Sync for LenError
impl Unpin for LenError
impl UnsafeUnpin for LenError
impl UnwindSafe for LenError
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