pub struct Cidr {
pub addr: Ipv4Addr,
pub prefix: u8,
}Expand description
Represents an IPv4 CIDR block (address + prefix length)
Fields§
§addr: Ipv4Addr§prefix: u8Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cidr
impl RefUnwindSafe for Cidr
impl Send for Cidr
impl Sync for Cidr
impl Unpin for Cidr
impl UnwindSafe for Cidr
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