pub struct RequestBodyState { /* private fields */ }Expand description
Body state of the Request state-machine.
Trait Implementations§
Source§impl BodyState for RequestBodyState
impl BodyState for RequestBodyState
Source§fn handler(&self) -> &dyn BodyHandler
fn handler(&self) -> &dyn BodyHandler
Returns a handler for accessing the body 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 FromContextOnce<RequestContext> for RequestBodyState
impl FromContextOnce<RequestContext> for RequestBodyState
type Error = InvalidRequestState
type Future<'c> = Pin<Box<dyn Future<Output = Result<RequestBodyState, <RequestBodyState as FromContextOnce<RequestContext>>::Error>> + 'c>>
fn from_context_once(context: Exclusive<'_, RequestContext>) -> Self::Future<'_>
Auto Trait Implementations§
impl Freeze for RequestBodyState
impl !RefUnwindSafe for RequestBodyState
impl !Send for RequestBodyState
impl !Sync for RequestBodyState
impl Unpin for RequestBodyState
impl !UnwindSafe for RequestBodyState
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