pub enum AddrSubnetError {
PrefixTooLong,
NotUnicastInSubnet,
InvalidWitness,
}
Expand description
The error returned from AddrSubnet::new
and AddrSubnetEither::new
.
Variants§
PrefixTooLong
The network prefix is longer than the number of bits in the address (32 for IPv4/128 for IPv6).
NotUnicastInSubnet
The address is not a unicast address in the given subnet (see
IpAddress::is_unicast_in_subnet
).
InvalidWitness
The address does not satisfy the requirements of the witness type.
Trait Implementations§
Source§impl Clone for AddrSubnetError
impl Clone for AddrSubnetError
Source§fn clone(&self) -> AddrSubnetError
fn clone(&self) -> AddrSubnetError
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 AddrSubnetError
impl Debug for AddrSubnetError
Source§impl PartialEq for AddrSubnetError
impl PartialEq for AddrSubnetError
impl Copy for AddrSubnetError
impl Eq for AddrSubnetError
impl StructuralPartialEq for AddrSubnetError
Auto Trait Implementations§
impl Freeze for AddrSubnetError
impl RefUnwindSafe for AddrSubnetError
impl Send for AddrSubnetError
impl Sync for AddrSubnetError
impl Unpin for AddrSubnetError
impl UnwindSafe for AddrSubnetError
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
)