Struct poem_openapi::payload::EventStream
source · [−]pub struct EventStream<T> { /* private fields */ }
Expand description
An event stream payload.
Reference: https://github.com/OAI/OpenAPI-Specification/issues/396#issuecomment-894718960
Implementations
Set the keep alive interval.
Trait Implementations
Register the schema contained in this response object to the registry.
If true, it means that the response object has a custom bad request handler. Read more
Convert poem::Error
to this response object.
Consume itself and return Response
.
fn with_header<K, V>(self, key: K, value: V) -> WithHeader<Self> where
K: TryInto<HeaderName>,
V: TryInto<HeaderValue>,
fn with_header<K, V>(self, key: K, value: V) -> WithHeader<Self> where
K: TryInto<HeaderName>,
V: TryInto<HeaderValue>,
Wrap an impl IntoResponse
to add a header. Read more
Wrap an impl IntoResponse
to set a status code. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
The content type of this payload.
Gets schema reference of this payload.
Auto Trait Implementations
impl<T> RefUnwindSafe for EventStream<T> where
T: RefUnwindSafe,
impl<T> Send for EventStream<T> where
T: Send,
impl<T> Sync for EventStream<T> where
T: Sync,
impl<T> Unpin for EventStream<T> where
T: Unpin,
impl<T> UnwindSafe for EventStream<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Consumes this value returns a poem::Result<T>
.
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