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) -> <RequestState as EntityState>::HeadersStateFuture
fn into_headers_state(self) -> <RequestState as EntityState>::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<S> FromContextOnce<RequestContext<S>> for RequestState
impl<S> FromContextOnce<RequestContext<S>> for RequestState
type Error = InvalidRequestState
type Future<'c> = Pin<Box<dyn Future<Output = Result<RequestState, <RequestState as FromContextOnce<RequestContext<S>>>::Error>> + 'c>> where S: 'c
fn from_context_once( context: Exclusive<'_, RequestContext<S>>, ) -> <RequestState as FromContextOnce<RequestContext<S>>>::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) -> <RequestState as IntoBodyState>::BodyStateFuture
fn into_body_state(self) -> <RequestState as IntoBodyState>::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, ) -> <RequestState as IntoBodyStreamState>::BodyStreamStateFuture
Auto Trait Implementations§
impl !RefUnwindSafe for RequestState
impl !Send for RequestState
impl !Sync for RequestState
impl !UnwindSafe for RequestState
impl Freeze for RequestState
impl Unpin for RequestState
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<C, T> Extract<T> for Cwhere
T: FromContext<C>,
impl<C, T> Extract<T> for Cwhere
T: FromContext<C>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more