Skip to main content

SessionReporter

Trait SessionReporter 

Source
pub trait SessionReporter:
    Send
    + Sync
    + 'static {
    // Required methods
    fn on_update(&self, snapshot: &FileSearchSnapshot);
    fn on_complete(&self);
}

Required Methods§

Source

fn on_update(&self, snapshot: &FileSearchSnapshot)

Called when the debounced top-N changes.

Source

fn on_complete(&self)

Called when the session becomes idle or is cancelled. Guaranteed to be called at least once per update_query.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§