pub type FirehoseHandler<S> = Arc<dyn Fn(FirehoseEvent, S) -> BoxFuture<'static, Result<()>> + Send + Sync>;Expand description
Type alias for firehose event handler functions.
The handler receives a FirehoseEvent and a clone of whatever state
object the caller supplied to spawn_firehose. The state type must be
Clone + Send + Sync + 'static.
Aliased Typeยง
pub struct FirehoseHandler<S> { /* private fields */ }