pub struct Address {
pub addr: IpAddr,
pub netmask: Option<IpAddr>,
pub broadcast_addr: Option<IpAddr>,
pub dst_addr: Option<IpAddr>,
}
Expand description
Address information for an interface
Fields§
§addr: IpAddr
The address
netmask: Option<IpAddr>
Network mask for this address
broadcast_addr: Option<IpAddr>
Broadcast address for this address
dst_addr: Option<IpAddr>
P2P destination address for this address
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