Trait QlogFilter
pub trait QlogFilter:
Send
+ Sync
+ 'static {
// Required method
fn matches(&self, event: &QlogEventView<'_>) -> bool;
// Provided method
fn generation(&self) -> u64 { ... }
}Available on crate features
quic and std only.Expand description
A cheap borrowed-event selection rule. Stateful filters advance generation whenever
selection changes, so the connection can provide a fresh recovery snapshot.
Required Methods§
fn matches(&self, event: &QlogEventView<'_>) -> bool
fn matches(&self, event: &QlogEventView<'_>) -> bool
Return whether this borrowed observation should reach the wrapped sink.
Provided Methods§
fn generation(&self) -> u64
fn generation(&self) -> u64
Increment when selection changes to request a fresh recovery snapshot. Stable filters may keep the default.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".