pub struct CountingSink {
pub api_calls: u64,
pub dom_mutations: u64,
pub network_requests: u64,
pub dynamic_code: u64,
pub cookie_access: u64,
pub errors: u64,
pub wasm_instantiations: u64,
pub fingerprint_access: u64,
pub context_messages: u64,
pub resource_limits: u64,
pub total: u64,
}Expand description
Counting sink — counts observations by category without storing them. Useful for high-throughput scanning where individual observations are less important than aggregate behavior.
Fields§
§api_calls: u64§dom_mutations: u64§network_requests: u64§dynamic_code: u64§errors: u64§wasm_instantiations: u64§fingerprint_access: u64§context_messages: u64§resource_limits: u64§total: u64Trait Implementations§
Source§impl Debug for CountingSink
impl Debug for CountingSink
Source§impl Default for CountingSink
impl Default for CountingSink
Source§fn default() -> CountingSink
fn default() -> CountingSink
Returns the “default value” for a type. Read more
Source§impl ObservationSink for CountingSink
impl ObservationSink for CountingSink
Source§fn on_observation(&mut self, observation: &Observation) -> ControlFlow
fn on_observation(&mut self, observation: &Observation) -> ControlFlow
Called for each observation during execution. Read more
Source§fn on_complete(&mut self)
fn on_complete(&mut self)
Called when execution completes (normally or via halt).
Override to perform cleanup or final analysis.
Auto Trait Implementations§
impl Freeze for CountingSink
impl RefUnwindSafe for CountingSink
impl Send for CountingSink
impl Sync for CountingSink
impl Unpin for CountingSink
impl UnsafeUnpin for CountingSink
impl UnwindSafe for CountingSink
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more