pub struct IpRecord {
pub ip: IpAddr,
pub prefix_len: u8,
}Expand description
An IP address paired with its prefix length (network mask).
Fields§
§ip: IpAddr§prefix_len: u8Trait Implementations§
impl Eq for IpRecord
Source§impl Ord for IpRecord
impl Ord for IpRecord
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for IpRecord
impl PartialOrd for IpRecord
impl StructuralPartialEq for IpRecord
Auto Trait Implementations§
impl Freeze for IpRecord
impl RefUnwindSafe for IpRecord
impl Send for IpRecord
impl Sync for IpRecord
impl Unpin for IpRecord
impl UnsafeUnpin for IpRecord
impl UnwindSafe for IpRecord
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