pub struct InterfaceId {
pub name: String,
pub index: u32,
}Expand description
Represents a network interface identifier defined by the OS.
Fields§
§name: StringInterface name, e.g. “en0”, “wlan0”, etc.
index: u32Interface index assigned by the OS, e.g. 1, 2, etc.
Trait Implementations§
Source§impl Clone for InterfaceId
impl Clone for InterfaceId
Source§fn clone(&self) -> InterfaceId
fn clone(&self) -> InterfaceId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterfaceId
impl Debug for InterfaceId
Source§impl Default for InterfaceId
impl Default for InterfaceId
Source§fn default() -> InterfaceId
fn default() -> InterfaceId
Returns the “default value” for a type. Read more
Source§impl Display for InterfaceId
impl Display for InterfaceId
Source§impl From<&Interface> for InterfaceId
impl From<&Interface> for InterfaceId
Source§impl Hash for InterfaceId
impl Hash for InterfaceId
Source§impl PartialEq for InterfaceId
impl PartialEq for InterfaceId
impl Eq for InterfaceId
impl StructuralPartialEq for InterfaceId
Auto Trait Implementations§
impl Freeze for InterfaceId
impl RefUnwindSafe for InterfaceId
impl Send for InterfaceId
impl Sync for InterfaceId
impl Unpin for InterfaceId
impl UnwindSafe for InterfaceId
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