pub trait StreamingQueryListener: Send + Sync {
// Required method
fn on_event(&self, event: &StreamingQueryListenerEvent);
}Expand description
A client-side listener for streaming-query events. Implement this trait (Rust
clients) and register it with StreamingQueryManager::add_listener; the manager
runs a background bus that streams events from the server and dispatches them here.
Required Methods§
fn on_event(&self, event: &StreamingQueryListenerEvent)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".