#[non_exhaustive]pub struct InterfaceOptions {
pub include_down: bool,
pub include_loopback: bool,
pub details: bool,
pub max_interfaces: usize,
}Expand description
Which interfaces interfaces_with returns, and in how much detail.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.include_down: boolInclude interfaces that are down (default true).
include_loopback: boolInclude loopback (default true).
details: boolRead the per-interface details: speed, MTU, kind (default true; false
skips the per-interface /sys reads on Linux).
max_interfaces: usizeThe most interfaces read; more is TooLarge (default 4 096).
Trait Implementations§
Source§impl Clone for InterfaceOptions
impl Clone for InterfaceOptions
impl Copy for InterfaceOptions
Source§impl Debug for InterfaceOptions
impl Debug for InterfaceOptions
Auto Trait Implementations§
impl Freeze for InterfaceOptions
impl RefUnwindSafe for InterfaceOptions
impl Send for InterfaceOptions
impl Sync for InterfaceOptions
impl Unpin for InterfaceOptions
impl UnsafeUnpin for InterfaceOptions
impl UnwindSafe for InterfaceOptions
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