pub struct ResponseContext<D> { /* private fields */ }Trait Implementations§
Source§impl<H, I> Entrypoint<ResponseContext<()>, I> for H
impl<H, I> Entrypoint<ResponseContext<()>, I> for H
Source§fn create_root_context(
self,
event_handlers: EventHandlerStack,
context_id: u32,
) -> Box<dyn RootContext>
fn create_root_context( self, event_handlers: EventHandlerStack, context_id: u32, ) -> Box<dyn RootContext>
Generate a
RootContext with the given event handlers and context id.Source§impl<D> FromContext<ResponseContext<D>, Transitive> for RequestData<D>where
D: 'static,
impl<D> FromContext<ResponseContext<D>, Transitive> for RequestData<D>where
D: 'static,
type Error = AlreadyExtracted<RequestData<D>>
fn from_context(context: &ResponseContext<D>) -> Result<Self, Self::Error>
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<'_>
Source§impl<D> FromContextOnce<ResponseContext<D>> for ResponseBodyStreamState
impl<D> FromContextOnce<ResponseContext<D>> for ResponseBodyStreamState
type Error = InvalidResponseState
type Future<'c> = Pin<Box<dyn Future<Output = Result<ResponseBodyStreamState, <ResponseBodyStreamState as FromContextOnce<ResponseContext<D>>>::Error>> + 'c>> where D: 'c
fn from_context_once( context: Exclusive<'_, ResponseContext<D>>, ) -> Self::Future<'_>
Source§impl<D> FromContextOnce<ResponseContext<D>> for ResponseHeadersState
impl<D> FromContextOnce<ResponseContext<D>> for ResponseHeadersState
type Error = InvalidResponseState
type Future<'c> = Pin<Box<dyn Future<Output = Result<ResponseHeadersState, <ResponseHeadersState as FromContextOnce<ResponseContext<D>>>::Error>> + 'c>> where D: 'c
fn from_context_once( context: Exclusive<'_, ResponseContext<D>>, ) -> Self::Future<'_>
Source§impl<D> FromContextOnce<ResponseContext<D>> for ResponseState
impl<D> FromContextOnce<ResponseContext<D>> for ResponseState
type Error = InvalidResponseState
type Future<'c> = Pin<Box<dyn Future<Output = Result<ResponseState, <ResponseState as FromContextOnce<ResponseContext<D>>>::Error>> + 'c>> where D: 'c
fn from_context_once( context: Exclusive<'_, ResponseContext<D>>, ) -> Self::Future<'_>
Auto Trait Implementations§
impl<D> !Freeze for ResponseContext<D>
impl<D> !RefUnwindSafe for ResponseContext<D>
impl<D> !Send for ResponseContext<D>
impl<D> !Sync for ResponseContext<D>
impl<D> Unpin for ResponseContext<D>where
D: Unpin,
impl<D> !UnwindSafe for ResponseContext<D>
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