Function axum::sse::sse [−][src]
pub fn sse<H, B, T>(handler: H) -> Sse<H, B, T> where
H: SseHandler<B, T>,
Expand description
Create a new Sse
service that will call the closure to produce a stream
of Event
s.
See the module docs for more details.