pub struct Sse<S> { /* private fields */ }
Expand description
An SSE response
Implementations
Create a new Sse
response that will respond with the given stream of
Event
s.
See the module docs for more details.
Configure the interval between keep-alive messages.
Defaults to no keep-alive messages.
Trait Implementations
Auto Trait Implementations
impl<S> RefUnwindSafe for Sse<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for Sse<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more