Expand description
Event system for client operations.
This module provides event types and handlers for observing and reacting to client operations (indexing, querying, etc.).
§Example
ⓘ
let emitter = EventEmitter::new()
.on_index(|e| match e {
IndexEvent::Complete { doc_id } => println!("Indexed: {}", doc_id),
_ => {}
});
let client = EngineBuilder::new()
.with_events(emitter)
.build()?;Structs§
- Event
Emitter - Event emitter for client operations.
Enums§
- Event
- Event types for client operations.
- Index
Event - Indexing operation events.
- Query
Event - Query operation events.
- Workspace
Event - Workspace operation events.
Traits§
- Async
Event Handler - Async event handler trait.
- Event
Handler - Sync event handler trait.
Type Aliases§
- Index
Handler - Type alias for sync index handler.
- Query
Handler - Type alias for sync query handler.
- Workspace
Handler - Type alias for sync workspace handler.