pub enum ParseAllError {
TrailingData,
ShortField,
ShortBuf,
}
Expand description
An error happened while trying to length-parse a type with built-in limit.
This error type is used for type that have their own length indicators and where any possible byte combination is valid.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ParseAllError
impl Clone for ParseAllError
Source§fn clone(&self) -> ParseAllError
fn clone(&self) -> ParseAllError
Returns a copy 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 ParseAllError
impl Debug for ParseAllError
Source§impl Display for ParseAllError
impl Display for ParseAllError
Source§impl Fail for ParseAllError
impl Fail for ParseAllError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<ParseAllError> for ParsedDnameAllError
impl From<ParseAllError> for ParsedDnameAllError
Source§fn from(err: ParseAllError) -> Self
fn from(err: ParseAllError) -> Self
Converts to this type from the input type.
Source§impl From<ShortBuf> for ParseAllError
impl From<ShortBuf> for ParseAllError
Source§impl PartialEq for ParseAllError
impl PartialEq for ParseAllError
impl Copy for ParseAllError
impl Eq for ParseAllError
impl StructuralPartialEq for ParseAllError
Auto Trait Implementations§
impl Freeze for ParseAllError
impl RefUnwindSafe for ParseAllError
impl Send for ParseAllError
impl Sync for ParseAllError
impl Unpin for ParseAllError
impl UnwindSafe for ParseAllError
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