pub enum NetworkSize {
V4(u32),
V6(u128),
}
Expand description
Represents a generic network size. For IPv4, the max size is a u32 and for IPv6, it is a u128
Variants§
Trait Implementations§
Source§impl Clone for NetworkSize
impl Clone for NetworkSize
Source§fn clone(&self) -> NetworkSize
fn clone(&self) -> NetworkSize
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 NetworkSize
impl Debug for NetworkSize
Source§impl Hash for NetworkSize
impl Hash for NetworkSize
Source§impl Ord for NetworkSize
impl Ord for NetworkSize
Source§fn cmp(&self, other: &NetworkSize) -> Ordering
fn cmp(&self, other: &NetworkSize) -> 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 NetworkSize
impl PartialEq for NetworkSize
Source§impl PartialOrd for NetworkSize
impl PartialOrd for NetworkSize
impl Copy for NetworkSize
impl Eq for NetworkSize
impl StructuralPartialEq for NetworkSize
Auto Trait Implementations§
impl Freeze for NetworkSize
impl RefUnwindSafe for NetworkSize
impl Send for NetworkSize
impl Sync for NetworkSize
impl Unpin for NetworkSize
impl UnwindSafe for NetworkSize
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