pub struct DiscoveryHooks {
pub on_slot_discovery: fn(slot_idx: usize, hash: u32),
pub on_bucket_mark: fn(hash: u32),
pub on_bucket_split: fn(label: &str, slot_idx: usize),
}Expand description
Discovery callbacks installed by an exploration backend.
Each field is a plain function pointer (defaults are no-ops). The accounting layer never knows what these do — coverage bitmaps and fork dispatch live entirely behind these pointers.
Fields§
§on_slot_discovery: fn(slot_idx: usize, hash: u32)A slot assertion (bool Sometimes/Reachable first pass, numeric watermark improvement, or frontier advance) made a discovery. Receives the slot index and the message hash.
on_bucket_mark: fn(hash: u32)An each-bucket assertion was hit (called on every invocation). Receives the bucket hash for coverage marking.
on_bucket_split: fn(label: &str, slot_idx: usize)An each-bucket assertion made a first discovery or quality improvement. Receives the message label and a slot index.
Implementations§
Trait Implementations§
Source§impl Clone for DiscoveryHooks
impl Clone for DiscoveryHooks
Source§fn clone(&self) -> DiscoveryHooks
fn clone(&self) -> DiscoveryHooks
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiscoveryHooks
Auto Trait Implementations§
impl Freeze for DiscoveryHooks
impl RefUnwindSafe for DiscoveryHooks
impl Send for DiscoveryHooks
impl Sync for DiscoveryHooks
impl Unpin for DiscoveryHooks
impl UnsafeUnpin for DiscoveryHooks
impl UnwindSafe for DiscoveryHooks
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