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 more