pub struct EventStream(/* private fields */);Expand description
A server-sent event stream, returned by streaming operations.
Deliberately a thin wrapper over a body rather than a concrete stream type: the Tower decides how it produces events, and this crate only promises the content type the specification declares.
Implementations§
Trait Implementations§
Source§impl IntoResponse for EventStream
impl IntoResponse for EventStream
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl !RefUnwindSafe for EventStream
impl !Sync for EventStream
impl !UnwindSafe for EventStream
impl Freeze for EventStream
impl Send for EventStream
impl Unpin for EventStream
impl UnsafeUnpin for EventStream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more