pub struct ResponseBodyState { /* private fields */ }Expand description
Body state of the Response state-machine.
Trait Implementations§
Source§impl BodyState for ResponseBodyState
impl BodyState for ResponseBodyState
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<D> FromContextOnce<ResponseContext<D>> for ResponseBodyState
impl<D> FromContextOnce<ResponseContext<D>> for ResponseBodyState
type Error = InvalidResponseState
type Future<'c> = Pin<Box<dyn Future<Output = Result<ResponseBodyState, <ResponseBodyState as FromContextOnce<ResponseContext<D>>>::Error>> + 'c>> where D: 'c
fn from_context_once( context: Exclusive<'_, ResponseContext<D>>, ) -> Self::Future<'_>
Auto Trait Implementations§
impl Freeze for ResponseBodyState
impl !RefUnwindSafe for ResponseBodyState
impl !Send for ResponseBodyState
impl !Sync for ResponseBodyState
impl Unpin for ResponseBodyState
impl !UnwindSafe for ResponseBodyState
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