Enum net::wire::Ipv6OptionFailureType
pub enum Ipv6OptionFailureType {
Skip,
Discard,
DiscardSendAll,
DiscardSendUnicast,
Unknown(u8),
}
Expand description
Action required when parsing the given IPv6 Extension Header Option Type fails
Variants§
Skip
Skip this option and continue processing the packet
Discard
Discard the containing packet
DiscardSendAll
Discard the containing packet and notify the sender
DiscardSendUnicast
Discard the containing packet and only notify the sender if the sender is a unicast address
Unknown(u8)
Trait Implementations§
§impl Clone for FailureType
impl Clone for FailureType
§fn clone(&self) -> FailureType
fn clone(&self) -> FailureType
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§impl Debug for FailureType
impl Debug for FailureType
§impl Display for FailureType
impl Display for FailureType
§impl From<Type> for FailureType
impl From<Type> for FailureType
§fn from(other: Type) -> FailureType
fn from(other: Type) -> FailureType
Converts to this type from the input type.
§impl From<u8> for FailureType
impl From<u8> for FailureType
§fn from(value: u8) -> FailureType
fn from(value: u8) -> FailureType
Converts to this type from the input type.
§impl Hash for FailureType
impl Hash for FailureType
§impl Ord for FailureType
impl Ord for FailureType
§impl PartialEq<FailureType> for FailureType
impl PartialEq<FailureType> for FailureType
§fn eq(&self, other: &FailureType) -> bool
fn eq(&self, other: &FailureType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<FailureType> for FailureType
impl PartialOrd<FailureType> for FailureType
§fn partial_cmp(&self, other: &FailureType) -> Option<Ordering>
fn partial_cmp(&self, other: &FailureType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FailureType
impl Eq for FailureType
impl StructuralEq for FailureType
impl StructuralPartialEq for FailureType
Auto Trait Implementations§
impl RefUnwindSafe for FailureType
impl Send for FailureType
impl Sync for FailureType
impl Unpin for FailureType
impl UnwindSafe for FailureType
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