pub enum Address {
Ipv4(Ipv4Addr),
Ipv6(Ipv6Addr),
}
Variants§
Implementations§
Source§impl Address
impl Address
pub fn check_prefix(&self, prefix_length: u8) -> Result<(), AddressError>
Source§impl Address
impl Address
pub const fn get_address_family_number(&self) -> AddressFamilyNumber
Trait Implementations§
impl Copy for Address
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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