pub struct Interface {
pub name: String,
pub kind: Kind,
pub addr: Option<SocketAddr>,
pub mask: Option<SocketAddr>,
pub hop: Option<NextHop>,
}
Fields§
§name: String
The name of this interface.
kind: Kind
The kind of interface this is.
addr: Option<SocketAddr>
The address of this interface, if it has one.
mask: Option<SocketAddr>
The netmask of this interface, if it has one.
hop: Option<NextHop>
The broadcast address or destination address, if it has one.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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