pub struct Interface {
pub name: String,
pub kind: Kind,
pub addr: Option<SocketAddr>,
pub mask: Option<SocketAddr>,
pub hop: Option<NextHop>,
}Expand description
One address on one local network interface.
ICE gathering walks these to produce host candidates.
Fields§
§name: StringThe OS name of the interface, such as en0 or eth0.
kind: KindWhich address family or link type this entry describes.
addr: Option<SocketAddr>The address itself, if the OS reported one.
mask: Option<SocketAddr>The netmask for Self::addr, if the OS reported one.
hop: Option<NextHop>The broadcast or point-to-point destination address, if any.
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 UnsafeUnpin 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