pub struct RequestState { /* private fields */ }Expand description
Initial state of the Request state-machine. This type is intended to be injected as a parameter in Request filters.
Trait Implementations§
Source§impl EntityState for RequestState
impl EntityState for RequestState
Source§type HeadersState = RequestHeadersState
type HeadersState = RequestHeadersState
Concrete type for Headers state of the Flow state-machine.
Source§type HeadersStateFuture = Ready<<RequestState as EntityState>::HeadersState>
type HeadersStateFuture = Ready<<RequestState 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 FromContextOnce<RequestContext> for RequestState
impl FromContextOnce<RequestContext> for RequestState
type Error = InvalidRequestState
type Future<'c> = Pin<Box<dyn Future<Output = Result<RequestState, <RequestState as FromContextOnce<RequestContext>>::Error>> + 'c>>
fn from_context_once(context: Exclusive<'_, RequestContext>) -> Self::Future<'_>
Source§impl IntoBodyState for RequestState
impl IntoBodyState for RequestState
Source§type BodyState = RequestBodyState
type BodyState = RequestBodyState
Concrete type for Body state of the Flow state-machine.
Source§type BodyStateFuture = Pin<Box<dyn Future<Output = <RequestState as IntoBodyState>::BodyState>>>
type BodyStateFuture = Pin<Box<dyn Future<Output = <RequestState 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 RequestState
impl IntoBodyStreamState for RequestState
type BodyStreamState = RequestBodyStreamState
type BodyStreamStateFuture = Pin<Box<dyn Future<Output = <RequestState as IntoBodyStreamState>::BodyStreamState>>>
fn into_body_stream_state(self) -> Self::BodyStreamStateFuture
Auto Trait Implementations§
impl Freeze for RequestState
impl !RefUnwindSafe for RequestState
impl !Send for RequestState
impl !Sync for RequestState
impl Unpin for RequestState
impl !UnwindSafe for RequestState
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