Struct interfaces::Address
source · pub struct Address {
pub kind: Kind,
pub addr: Option<SocketAddr>,
pub mask: Option<SocketAddr>,
pub hop: Option<NextHop>,
}
Expand description
This structure represents a single address for a given interface.
Fields§
§kind: Kind
The kind of address this is (e.g. IPv4).
addr: Option<SocketAddr>
The underlying socket address, if it applies.
mask: Option<SocketAddr>
The netmask of this interface address, if it applies.
hop: Option<NextHop>
The broadcast address or destination address, if it applies.
Trait Implementations§
Auto Trait Implementations§
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