AdapterFilter

Trait AdapterFilter 

Source
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§

Source

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>

Source§

fn matches(&self, adapter: &AdapterSnapshot) -> bool

Returns true if the adapter should be included, false to filter it out.

Implementations on Foreign Types§

Source§

impl AdapterFilter for Box<dyn AdapterFilter>

Source§

fn matches(&self, adapter: &AdapterSnapshot) -> bool

Source§

impl<T: AdapterFilter + ?Sized> AdapterFilter for &T

Source§

fn matches(&self, adapter: &AdapterSnapshot) -> bool

Implementors§