pub enum HeaderLimitedReadError {
Io(Error),
Len(LenError),
Content(HeaderError),
}Available on crate feature
std only.Expand description
Error when decoding an IP authentication header 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