Struct nispor::NetStateFilter
source · #[non_exhaustive]pub struct NetStateFilter {
pub iface: Option<NetStateIfaceFilter>,
pub route: Option<NetStateRouteFilter>,
pub route_rule: Option<NetStateRouteRuleFilter>,
}
Expand description
The NetStateFilter::default()
will retrieve full information.
To query only the interested part, please use NetStateFilter::minimum()
with proper sub-filter set with 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: Option<NetStateIfaceFilter>
Filter applied to interfaces, default is NetStateIfaceFilter::default() – all interface with full information. When set to None, no interface will be included in result.
route: Option<NetStateRouteFilter>
Filter applied to route entries, default is NetStateRouteFilter::default() – full routes information. When set to None, no route will be included in result.
route_rule: Option<NetStateRouteRuleFilter>
Filter applied to route rule entries, default is NetStateRouteRuleFilter::default() – full route rule infromation. When set to None, no route rule will be included in result.
Implementations§
Trait Implementations§
source§impl Clone for NetStateFilter
impl Clone for NetStateFilter
source§fn clone(&self) -> NetStateFilter
fn clone(&self) -> NetStateFilter
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 NetStateFilter
impl Debug for NetStateFilter
source§impl Default for NetStateFilter
impl Default for NetStateFilter
source§impl PartialEq for NetStateFilter
impl PartialEq for NetStateFilter
source§fn eq(&self, other: &NetStateFilter) -> bool
fn eq(&self, other: &NetStateFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NetStateFilter
impl StructuralPartialEq for NetStateFilter
Auto Trait Implementations§
impl Freeze for NetStateFilter
impl RefUnwindSafe for NetStateFilter
impl Send for NetStateFilter
impl Sync for NetStateFilter
impl Unpin for NetStateFilter
impl UnwindSafe for NetStateFilter
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