pub enum Network {
V4(Ipv4Network),
V6(Ipv6Network),
}Expand description
An IP network of either family.
Variants§
V4(Ipv4Network)
V6(Ipv6Network)
Trait Implementations§
impl Copy for Network
impl Eq for Network
Source§impl From<Ipv4Network> for Network
impl From<Ipv4Network> for Network
Source§fn from(value: Ipv4Network) -> Network
fn from(value: Ipv4Network) -> Network
Converts to this type from the input type.
Source§impl From<Ipv6Network> for Network
impl From<Ipv6Network> for Network
Source§fn from(value: Ipv6Network) -> Network
fn from(value: Ipv6Network) -> Network
Converts to this type from the input type.
impl StructuralPartialEq for Network
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnsafeUnpin for Network
impl UnwindSafe for Network
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