Enum etherparse::err::ipv6_exts::HeaderLimitedReadError
source · pub enum HeaderLimitedReadError {
Io(Error),
Len(LenError),
Content(HeaderError),
}
Available on crate feature
std
only.Expand description
Error when decoding IPv6 extension headers via a std::io::Read
source.
Variants§
Io(Error)
IO error was encountered while reading header.
Len(LenError)
Error when parsing had to be aborted because a length limit specified by an upper layer has been exceeded.
Content(HeaderError)
Error caused by the contents of the header.
Implementations§
source§impl HeaderLimitedReadError
impl HeaderLimitedReadError
sourcepub fn io(self) -> Option<Error>
pub fn io(self) -> Option<Error>
Returns the std::io::Error
value if the HeaderLimitedReadError
is Io
.
Otherwise None
is returned.
sourcepub fn len(self) -> Option<LenError>
pub fn len(self) -> Option<LenError>
Returns the crate::err::LenError
value if it is of value Len
.
Otherwise None
is returned.
sourcepub fn content(self) -> Option<HeaderError>
pub fn content(self) -> Option<HeaderError>
Returns the crate::err::ip_auth::HeaderError
value if it is of value Content
.
Otherwise None
is returned.
Trait Implementations§
source§impl Debug for HeaderLimitedReadError
impl Debug for HeaderLimitedReadError
source§impl Display for HeaderLimitedReadError
impl Display for HeaderLimitedReadError
source§impl Error for HeaderLimitedReadError
impl Error for HeaderLimitedReadError
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 HeaderLimitedReadError
impl !RefUnwindSafe for HeaderLimitedReadError
impl Send for HeaderLimitedReadError
impl Sync for HeaderLimitedReadError
impl Unpin for HeaderLimitedReadError
impl !UnwindSafe for HeaderLimitedReadError
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