Enum etherparse::err::ipv4_exts::HeaderWriteError
source · pub enum HeaderWriteError {
Io(Error),
Content(ExtsWalkError),
}
Available on crate feature
std
only.Expand description
Error when writing IPv4 extension headers.
Variants§
Io(Error)
IO error encountered while writing.
Content(ExtsWalkError)
Data was not serializable because of its content.
Implementations§
source§impl HeaderWriteError
impl HeaderWriteError
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 HeaderWriteError::Io
.
sourcepub fn content(&self) -> Option<&ExtsWalkError>
pub fn content(&self) -> Option<&ExtsWalkError>
Returns a reference to the crate::err::ipv4_exts::ExtsWalkError
if the value is an HeaderWriteError::Content
.
Trait Implementations§
source§impl Debug for HeaderWriteError
impl Debug for HeaderWriteError
source§impl Display for HeaderWriteError
impl Display for HeaderWriteError
source§impl Error for HeaderWriteError
impl Error for HeaderWriteError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 HeaderWriteError
impl !RefUnwindSafe for HeaderWriteError
impl Send for HeaderWriteError
impl Sync for HeaderWriteError
impl Unpin for HeaderWriteError
impl !UnwindSafe for HeaderWriteError
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