Struct nispor::NetStateIfaceFilter
source · #[non_exhaustive]pub struct NetStateIfaceFilter {
pub iface_name: Option<String>,
pub include_ip_address: bool,
pub include_sriov_vf_info: bool,
pub include_bridge_vlan: bool,
pub include_ethtool: bool,
pub include_mptcp: bool,
}
Expand description
The NetStateIfaceFilter::default()
will retrieve full information.
To query only interested part, please use NetStateIfaceFilter::minimum()
along with additional property set to Some()
.
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.iface_name: Option<String>
Only specified interface. By default: None(all interfaces)
include_ip_address: bool
Include IP Address information. By default: true
include_sriov_vf_info: bool
Include SR-IOV VF information or not. By default: true
include_bridge_vlan: bool
Include Bridge VLAN information or not. By default: true
include_ethtool: bool
Include ethool information or not. By default: true
include_mptcp: bool
Include mptcp information or not. By default: true
Implementations§
Trait Implementations§
source§impl Clone for NetStateIfaceFilter
impl Clone for NetStateIfaceFilter
source§fn clone(&self) -> NetStateIfaceFilter
fn clone(&self) -> NetStateIfaceFilter
Returns a copy 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 NetStateIfaceFilter
impl Debug for NetStateIfaceFilter
source§impl Default for NetStateIfaceFilter
impl Default for NetStateIfaceFilter
source§impl PartialEq for NetStateIfaceFilter
impl PartialEq for NetStateIfaceFilter
source§fn eq(&self, other: &NetStateIfaceFilter) -> bool
fn eq(&self, other: &NetStateIfaceFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NetStateIfaceFilter
impl StructuralPartialEq for NetStateIfaceFilter
Auto Trait Implementations§
impl Freeze for NetStateIfaceFilter
impl RefUnwindSafe for NetStateIfaceFilter
impl Send for NetStateIfaceFilter
impl Sync for NetStateIfaceFilter
impl Unpin for NetStateIfaceFilter
impl UnwindSafe for NetStateIfaceFilter
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