Enum etherparse::err::ip::HeadersWriteError
source · pub enum HeadersWriteError {
Io(Error),
Ipv4Exts(ExtsWalkError),
Ipv6Exts(ExtsWalkError),
}
Available on crate feature
std
only.Expand description
Error when writing IPv4 extension headers.
Variants§
Io(Error)
IO error encountered while writing.
Ipv4Exts(ExtsWalkError)
IPv4 extensions can not be serialized (e.g. order is not determinable as headers are never referenced).
Ipv6Exts(ExtsWalkError)
IPv6 extensions can not be serialized (e.g. order is not determinable as headers are never referenced).
Implementations§
source§impl HeadersWriteError
impl HeadersWriteError
sourcepub fn io(&self) -> Option<&Error>
pub fn io(&self) -> Option<&Error>
Returns a reference to the std::io::Error
if the value is an Io
.
sourcepub fn ipv4_exts(&self) -> Option<&ExtsWalkError>
pub fn ipv4_exts(&self) -> Option<&ExtsWalkError>
Returns a reference to the crate::err::ipv4_exts::ExtsWalkError
if the value is an Ipv4Exts
.
sourcepub fn ipv6_exts(&self) -> Option<&ExtsWalkError>
pub fn ipv6_exts(&self) -> Option<&ExtsWalkError>
Returns a reference to the crate::err::ipv6_exts::ExtsWalkError
if the value is an Ipv6Exts
.
Trait Implementations§
source§impl Debug for HeadersWriteError
impl Debug for HeadersWriteError
source§impl Display for HeadersWriteError
impl Display for HeadersWriteError
source§impl Error for HeadersWriteError
impl Error for HeadersWriteError
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 HeadersWriteError
impl !RefUnwindSafe for HeadersWriteError
impl Send for HeadersWriteError
impl Sync for HeadersWriteError
impl Unpin for HeadersWriteError
impl !UnwindSafe for HeadersWriteError
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