Module sse
Server-Sent Events (SSE) responses.
Example
use ;
use ;
use StreamExt as _ ;
use ;
let app = new.route;
async
# let _: Router = app;
Structs
- Event Server-sent event
-
EventDataWriter
Expose
Eventas astd::fmt::Writesuch that any form of data can be written as data safely. - KeepAlive Configure the interval between keep-alive messages, the content of each message, and the associated stream.
- KeepAliveStream A wrapper around a stream that produces keep-alive events
- Sse An SSE response