pub enum IpVersion {
V4,
V6,
}
Expand description
Internet Protocol (IP) version.
Variants
V4
IPv4
V6
IPv6
Trait Implementations
sourceimpl PartialOrd<IpVersion> for IpVersion
impl PartialOrd<IpVersion> for IpVersion
sourcefn partial_cmp(&self, other: &IpVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &IpVersion) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Eq for IpVersion
impl StructuralEq for IpVersion
impl StructuralPartialEq for IpVersion
Auto Trait Implementations
impl RefUnwindSafe for IpVersion
impl Send for IpVersion
impl Sync for IpVersion
impl Unpin for IpVersion
impl UnwindSafe for IpVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more