pub struct InterfaceAddress {
pub ip: IpAddr,
pub prefix_len: Option<u8>,
}Expand description
An address assigned to an interface.
Fields§
§ip: IpAddrThe address.
prefix_len: Option<u8>Prefix length, where reported.
Trait Implementations§
Source§impl Clone for InterfaceAddress
impl Clone for InterfaceAddress
Source§fn clone(&self) -> InterfaceAddress
fn clone(&self) -> InterfaceAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InterfaceAddress
Source§impl Debug for InterfaceAddress
impl Debug for InterfaceAddress
impl Eq for InterfaceAddress
Source§impl PartialEq for InterfaceAddress
impl PartialEq for InterfaceAddress
impl StructuralPartialEq for InterfaceAddress
Auto Trait Implementations§
impl Freeze for InterfaceAddress
impl RefUnwindSafe for InterfaceAddress
impl Send for InterfaceAddress
impl Sync for InterfaceAddress
impl Unpin for InterfaceAddress
impl UnsafeUnpin for InterfaceAddress
impl UnwindSafe for InterfaceAddress
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