pub struct FilterContext { /* private fields */ }Expand description
Context representing the request filter function of the plugin.
The filter function is the one that is provided to the Launcher.
Trait Implementations§
Source§impl<H, I> Entrypoint<FilterContext, I> for H
impl<H, I> Entrypoint<FilterContext, 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 FromContext<FilterContext> for Rc<HttpReactor>
impl FromContext<FilterContext> for Rc<HttpReactor>
type Error = Infallible
fn from_context(context: &FilterContext) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
Source§impl<E> FromContextOnce<FilterContext> for Exchange<E>
impl<E> FromContextOnce<FilterContext> for Exchange<E>
type Error = AlreadyExtracted<Exchange<E>>
type Future<'c> = Pin<Box<dyn Future<Output = Result<Exchange<E>, <Exchange<E> as FromContextOnce<FilterContext>>::Error>> + 'c>>
fn from_context_once(context: Exclusive<'_, FilterContext>) -> Self::Future<'_>
Auto Trait Implementations§
impl Freeze for FilterContext
impl !RefUnwindSafe for FilterContext
impl !Send for FilterContext
impl !Sync for FilterContext
impl Unpin for FilterContext
impl !UnwindSafe for FilterContext
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