pub enum Ipv6ParseError {
Parse {
error: ParseError,
},
ParameterProblem {
src_ip: Ipv6Addr,
dst_ip: Ipv6Addr,
code: Icmpv6ParameterProblemCode,
pointer: u32,
must_send_icmp: bool,
action: IpParseErrorAction,
},
}Expand description
Error type for IP packet parsing. Error when parsing an IPv6 packet.
Variants§
Parse
Fields
§
error: ParseErrorParameterProblem
For errors where an ICMP Parameter Problem error needs to be sent to the source of a packet.
Fields
§
code: Icmpv6ParameterProblemCodeThe ICMPv6 parameter problem code that provides more granular information about the parameter problem encountered.
§
action: IpParseErrorActionThe action IP nodes should take upon encountering this error.
If must_send_icmp is true, IP nodes MUST send an ICMP response
if action specifies it. Otherwise, the node MAY choose to discard
the packet and do nothing further.
Trait Implementations§
Source§impl Clone for Ipv6ParseError
impl Clone for Ipv6ParseError
Source§fn clone(&self) -> Ipv6ParseError
fn clone(&self) -> Ipv6ParseError
Returns a duplicate 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 Ipv6ParseError
impl Debug for Ipv6ParseError
Source§impl Display for Ipv6ParseError
impl Display for Ipv6ParseError
Source§impl Error for Ipv6ParseError
impl Error for Ipv6ParseError
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()
Source§impl From<OptionParseErr> for Ipv6ParseError
impl From<OptionParseErr> for Ipv6ParseError
Source§fn from(error: OptionParseErr) -> Self
fn from(error: OptionParseErr) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Ipv6ParseError
impl From<ParseError> for Ipv6ParseError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Ipv6ParseError
impl PartialEq for Ipv6ParseError
impl StructuralPartialEq for Ipv6ParseError
Auto Trait Implementations§
impl Freeze for Ipv6ParseError
impl RefUnwindSafe for Ipv6ParseError
impl Send for Ipv6ParseError
impl Sync for Ipv6ParseError
impl Unpin for Ipv6ParseError
impl UnsafeUnpin for Ipv6ParseError
impl UnwindSafe for Ipv6ParseError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more