pub struct InterfaceSelector {
pub name: Option<String>,
pub ifindex: Option<u32>,
}Expand description
Selects a network interface either by interface name or by ifindex.
Fields§
§name: Option<String>Selects the interface by name (for example, "wlan0").
ifindex: Option<u32>Selects the interface by Linux interface index.
Implementations§
Trait Implementations§
Source§impl Clone for InterfaceSelector
impl Clone for InterfaceSelector
Source§fn clone(&self) -> InterfaceSelector
fn clone(&self) -> InterfaceSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InterfaceSelector
impl Debug for InterfaceSelector
Source§impl Default for InterfaceSelector
impl Default for InterfaceSelector
Source§fn default() -> InterfaceSelector
fn default() -> InterfaceSelector
Returns the “default value” for a type. Read more
impl Eq for InterfaceSelector
Source§impl PartialEq for InterfaceSelector
impl PartialEq for InterfaceSelector
Source§fn eq(&self, other: &InterfaceSelector) -> bool
fn eq(&self, other: &InterfaceSelector) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterfaceSelector
Source§impl Validate for InterfaceSelector
impl Validate for InterfaceSelector
Auto Trait Implementations§
impl Freeze for InterfaceSelector
impl RefUnwindSafe for InterfaceSelector
impl Send for InterfaceSelector
impl Sync for InterfaceSelector
impl Unpin for InterfaceSelector
impl UnsafeUnpin for InterfaceSelector
impl UnwindSafe for InterfaceSelector
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