Skip to main content

StreamCallback

Trait StreamCallback 

Source
pub trait StreamCallback: Send + Sync {
    // Required method
    fn on_event(&self, event: &StreamEvent);
}
Expand description

Callback for stream events. Implementations should be cheap/non-blocking.

Required Methods§

Source

fn on_event(&self, event: &StreamEvent)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§