pub enum SubnetError {
PrefixTooLong,
HostBitsSet,
}
Expand description
The error returned from Subnet::new
and SubnetEither::new
.
Variants§
PrefixTooLong
The network prefix is longer than the number of bits in the address (32 for IPv4/128 for IPv6).
HostBitsSet
The network address has some bits in the host part (past the network prefix) set to one.
Trait Implementations§
Source§impl Clone for SubnetError
impl Clone for SubnetError
Source§fn clone(&self) -> SubnetError
fn clone(&self) -> SubnetError
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 SubnetError
impl Debug for SubnetError
Source§impl PartialEq for SubnetError
impl PartialEq for SubnetError
impl Copy for SubnetError
impl Eq for SubnetError
impl StructuralPartialEq for SubnetError
Auto Trait Implementations§
impl Freeze for SubnetError
impl RefUnwindSafe for SubnetError
impl Send for SubnetError
impl Sync for SubnetError
impl Unpin for SubnetError
impl UnwindSafe for SubnetError
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
)