pub trait AdapterFilter: Send + Sync {
// Required method
fn matches(&self, adapter: &AdapterSnapshot) -> bool;
}Expand description
Trait for filtering network adapters.
Implementations determine which adapters should be included in monitoring.
Filters are composable via FilterChain.
§Thread Safety
Filters must be Send + Sync to support concurrent access in async contexts.
Required Methods§
Sourcefn matches(&self, adapter: &AdapterSnapshot) -> bool
fn matches(&self, adapter: &AdapterSnapshot) -> bool
Returns true if the adapter should be included, false to filter it out.
Trait Implementations§
Source§impl AdapterFilter for Box<dyn AdapterFilter>
impl AdapterFilter for Box<dyn AdapterFilter>
Source§fn matches(&self, adapter: &AdapterSnapshot) -> bool
fn matches(&self, adapter: &AdapterSnapshot) -> bool
Returns
true if the adapter should be included, false to filter it out.