Enum etherparse::icmpv4::ParameterProblemHeader
source · pub enum ParameterProblemHeader {
PointerIndicatesError(u8),
MissingRequiredOption,
BadLength,
}
Expand description
The header of an ICMPv4 Parameter Problems (contents up to the offending ip header).
Variants§
PointerIndicatesError(u8)
Identifies the octet where an error was detected.
The value is the pointer pointing to the offending octet in the offending packet.
MissingRequiredOption
Missing a Required Option
BadLength
Bad Length
Implementations§
source§impl ParameterProblemHeader
impl ParameterProblemHeader
sourcepub fn from_values(code_u8: u8, pointer: u8) -> Option<ParameterProblemHeader>
pub fn from_values(code_u8: u8, pointer: u8) -> Option<ParameterProblemHeader>
Tries to convert the code u8
value and pointer to a ParameterProblemHeader
value.
Returns None
in case the code value is not known as a parameter problem code.
Trait Implementations§
source§impl Clone for ParameterProblemHeader
impl Clone for ParameterProblemHeader
source§fn clone(&self) -> ParameterProblemHeader
fn clone(&self) -> ParameterProblemHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ParameterProblemHeader
impl Debug for ParameterProblemHeader
source§impl PartialEq for ParameterProblemHeader
impl PartialEq for ParameterProblemHeader
source§fn eq(&self, other: &ParameterProblemHeader) -> bool
fn eq(&self, other: &ParameterProblemHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParameterProblemHeader
impl StructuralPartialEq for ParameterProblemHeader
Auto Trait Implementations§
impl Freeze for ParameterProblemHeader
impl RefUnwindSafe for ParameterProblemHeader
impl Send for ParameterProblemHeader
impl Sync for ParameterProblemHeader
impl Unpin for ParameterProblemHeader
impl UnwindSafe for ParameterProblemHeader
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