pub struct RequestHeadersState { /* private fields */ }Expand description
Headers state of the Request state-machine.
Implementations§
Trait Implementations§
Source§impl FromContextOnce<RequestContext> for RequestHeadersState
impl FromContextOnce<RequestContext> for RequestHeadersState
type Error = InvalidRequestState
type Future<'c> = Pin<Box<dyn Future<Output = Result<RequestHeadersState, <RequestHeadersState as FromContextOnce<RequestContext>>::Error>> + 'c>>
fn from_context_once(context: Exclusive<'_, RequestContext>) -> Self::Future<'_>
Source§impl HeadersState for RequestHeadersState
impl HeadersState for RequestHeadersState
Source§fn handler(&self) -> &dyn HeadersHandler
fn handler(&self) -> &dyn HeadersHandler
Returns a handler for accessing the headers of the current HTTP Flow.
Source§fn contains_body(&self) -> bool
fn contains_body(&self) -> bool
Returns
true if the current HTTP Flow contains body.Source§impl IntoBodyState for RequestHeadersState
impl IntoBodyState for RequestHeadersState
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 = <RequestHeadersState as IntoBodyState>::BodyState>>>
type BodyStateFuture = Pin<Box<dyn Future<Output = <RequestHeadersState 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 RequestHeadersState
impl IntoBodyStreamState for RequestHeadersState
type BodyStreamState = RequestBodyStreamState
type BodyStreamStateFuture = Pin<Box<dyn Future<Output = <RequestHeadersState as IntoBodyStreamState>::BodyStreamState>>>
fn into_body_stream_state(self) -> Self::BodyStreamStateFuture
Auto Trait Implementations§
impl Freeze for RequestHeadersState
impl !RefUnwindSafe for RequestHeadersState
impl !Send for RequestHeadersState
impl !Sync for RequestHeadersState
impl Unpin for RequestHeadersState
impl !UnwindSafe for RequestHeadersState
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