pub struct ResponseState { /* private fields */ }Expand description
Initial state of the Response state-machine. This type is intended to be injected as a parameter in Response filters.
Trait Implementations§
Source§impl EntityState for ResponseState
impl EntityState for ResponseState
Source§type HeadersState = ResponseHeadersState
type HeadersState = ResponseHeadersState
Concrete type for Headers state of the Flow state-machine.
Source§type HeadersStateFuture = Ready<<ResponseState as EntityState>::HeadersState>
type HeadersStateFuture = Ready<<ResponseState as EntityState>::HeadersState>
A
Future that will be completed when the Headers state is reached.Source§fn into_headers_state(self) -> Self::HeadersStateFuture
fn into_headers_state(self) -> Self::HeadersStateFuture
Moves the current initial state into the Headers state of the HTTP Flow state-machine.
The
Future returned by this method can be cancelled.Source§impl<D> FromContextOnce<ResponseContext<D>> for ResponseState
impl<D> FromContextOnce<ResponseContext<D>> for ResponseState
type Error = InvalidResponseState
type Future<'c> = Pin<Box<dyn Future<Output = Result<ResponseState, <ResponseState as FromContextOnce<ResponseContext<D>>>::Error>> + 'c>> where D: 'c
fn from_context_once( context: Exclusive<'_, ResponseContext<D>>, ) -> Self::Future<'_>
Source§impl IntoBodyState for ResponseState
impl IntoBodyState for ResponseState
Source§type BodyState = ResponseBodyState
type BodyState = ResponseBodyState
Concrete type for Body state of the Flow state-machine.
Source§type BodyStateFuture = Pin<Box<dyn Future<Output = <ResponseState as IntoBodyState>::BodyState>>>
type BodyStateFuture = Pin<Box<dyn Future<Output = <ResponseState as IntoBodyState>::BodyState>>>
A
Future that will be completed when the Body state is reached.Source§fn into_body_state(self) -> Self::BodyStateFuture
fn into_body_state(self) -> Self::BodyStateFuture
Moves the current state into the Body state of the HTTP Flow state-machine.
The
Future returned by this method can be cancelled.Source§impl IntoBodyStreamState for ResponseState
impl IntoBodyStreamState for ResponseState
type BodyStreamState = ResponseBodyStreamState
type BodyStreamStateFuture = Pin<Box<dyn Future<Output = <ResponseState as IntoBodyStreamState>::BodyStreamState>>>
fn into_body_stream_state(self) -> Self::BodyStreamStateFuture
Auto Trait Implementations§
impl Freeze for ResponseState
impl !RefUnwindSafe for ResponseState
impl !Send for ResponseState
impl !Sync for ResponseState
impl Unpin for ResponseState
impl !UnwindSafe for ResponseState
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