pub enum Ipv6ExtTypedHeaderError {
Ipv6ExtensionIndexOutOfBounds(Ipv6ExtensionIndexOutOfBoundsError),
UnrecognizedInternetProtocolNumber(UnrecognizedInternetProtocolNumberError),
}
Expand description
Error returned by IPv6 extension methods returning a typed internet protocol number.
Variants§
Ipv6ExtensionIndexOutOfBounds(Ipv6ExtensionIndexOutOfBoundsError)
The requested IPv6 extension does not exist.
UnrecognizedInternetProtocolNumber(UnrecognizedInternetProtocolNumberError)
Internet protocol number is not recognized.
Trait Implementations§
source§impl Clone for Ipv6ExtTypedHeaderError
impl Clone for Ipv6ExtTypedHeaderError
source§fn clone(&self) -> Ipv6ExtTypedHeaderError
fn clone(&self) -> Ipv6ExtTypedHeaderError
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 Ipv6ExtTypedHeaderError
impl Debug for Ipv6ExtTypedHeaderError
source§impl Display for Ipv6ExtTypedHeaderError
impl Display for Ipv6ExtTypedHeaderError
source§impl Error for Ipv6ExtTypedHeaderError
impl Error for Ipv6ExtTypedHeaderError
1.30.0 · 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()
source§impl From<Ipv6ExtensionIndexOutOfBoundsError> for Ipv6ExtTypedHeaderError
impl From<Ipv6ExtensionIndexOutOfBoundsError> for Ipv6ExtTypedHeaderError
source§fn from(value: Ipv6ExtensionIndexOutOfBoundsError) -> Self
fn from(value: Ipv6ExtensionIndexOutOfBoundsError) -> Self
Converts to this type from the input type.
source§impl From<UnrecognizedInternetProtocolNumberError> for Ipv6ExtTypedHeaderError
impl From<UnrecognizedInternetProtocolNumberError> for Ipv6ExtTypedHeaderError
source§fn from(value: UnrecognizedInternetProtocolNumberError) -> Self
fn from(value: UnrecognizedInternetProtocolNumberError) -> Self
Converts to this type from the input type.
source§impl Hash for Ipv6ExtTypedHeaderError
impl Hash for Ipv6ExtTypedHeaderError
source§impl Ord for Ipv6ExtTypedHeaderError
impl Ord for Ipv6ExtTypedHeaderError
source§fn cmp(&self, other: &Ipv6ExtTypedHeaderError) -> Ordering
fn cmp(&self, other: &Ipv6ExtTypedHeaderError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Ipv6ExtTypedHeaderError
impl PartialEq for Ipv6ExtTypedHeaderError
source§fn eq(&self, other: &Ipv6ExtTypedHeaderError) -> bool
fn eq(&self, other: &Ipv6ExtTypedHeaderError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Ipv6ExtTypedHeaderError
impl PartialOrd for Ipv6ExtTypedHeaderError
source§fn partial_cmp(&self, other: &Ipv6ExtTypedHeaderError) -> Option<Ordering>
fn partial_cmp(&self, other: &Ipv6ExtTypedHeaderError) -> 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 Ipv6ExtTypedHeaderError
impl Eq for Ipv6ExtTypedHeaderError
impl StructuralPartialEq for Ipv6ExtTypedHeaderError
Auto Trait Implementations§
impl Freeze for Ipv6ExtTypedHeaderError
impl RefUnwindSafe for Ipv6ExtTypedHeaderError
impl Send for Ipv6ExtTypedHeaderError
impl Sync for Ipv6ExtTypedHeaderError
impl Unpin for Ipv6ExtTypedHeaderError
impl UnwindSafe for Ipv6ExtTypedHeaderError
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