pub enum Ipv4AddressClass {
A,
B,
C,
D,
E,
}
Expand description
The class of an IPv4 address.
The classful addressing scheme is obsoloted in favour of CIDR but is still used on some systems. For more information, see RFC 791 section 2.3 and RFC 1812 section 2.2.5.1.
Variants§
A
A Class A IPv4 address.
B
A Class B IPv4 address.
C
A Class C IPv4 address.
D
A Class D IPv4 address.
Class D addresses are also known as multicast.
E
A Class E IPv4 address.
Class E addresses are also known as experimental.
Implementations§
Source§impl Ipv4AddressClass
impl Ipv4AddressClass
Sourcepub const fn default_prefix_len(self) -> Option<u8>
pub const fn default_prefix_len(self) -> Option<u8>
Returns the default prefix length for an IPv4 address class if the prefix is well-defined.
Trait Implementations§
Source§impl Clone for Ipv4AddressClass
impl Clone for Ipv4AddressClass
Source§fn clone(&self) -> Ipv4AddressClass
fn clone(&self) -> Ipv4AddressClass
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 Ipv4AddressClass
impl Debug for Ipv4AddressClass
Source§impl PartialEq for Ipv4AddressClass
impl PartialEq for Ipv4AddressClass
impl Copy for Ipv4AddressClass
impl Eq for Ipv4AddressClass
impl StructuralPartialEq for Ipv4AddressClass
Auto Trait Implementations§
impl Freeze for Ipv4AddressClass
impl RefUnwindSafe for Ipv4AddressClass
impl Send for Ipv4AddressClass
impl Sync for Ipv4AddressClass
impl Unpin for Ipv4AddressClass
impl UnwindSafe for Ipv4AddressClass
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)