Skip to main content

StreamHandlerFn

Type Alias StreamHandlerFn 

Source
pub type StreamHandlerFn = SubscriptionHandlerFn;
Expand description

Stream reuses the same handler signature as subscription (returns BoxStream), but the SSE protocol differs: stream data events carry an incrementing id.

Aliased Typeยง

pub struct StreamHandlerFn { /* private fields */ }