Enum etherparse::err::io::LimitedReadError
source · pub enum LimitedReadError {
Io(Error),
Len(LenError),
}
Available on crate feature
std
only.Expand description
Error that can occur when reading from a crate::io::LimitedReader
Variants§
Io(Error)
IO error was encountered while reading header or expected packet contents.
Len(LenError)
Error when parsing had to be aborted because a length limit specified by an upper layer has been exceeded.
Implementations§
Trait Implementations§
source§impl Debug for LimitedReadError
impl Debug for LimitedReadError
source§impl Display for LimitedReadError
impl Display for LimitedReadError
source§impl Error for LimitedReadError
impl Error for LimitedReadError
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 LimitedReadError
impl !RefUnwindSafe for LimitedReadError
impl Send for LimitedReadError
impl Sync for LimitedReadError
impl Unpin for LimitedReadError
impl !UnwindSafe for LimitedReadError
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