pub struct PluginRequestMiddleware<P> { /* private fields */ }
Expand description
Adapter to use a ClientPlugin as RequestMiddleware
Implementations§
Source§impl<P> PluginRequestMiddleware<P>
impl<P> PluginRequestMiddleware<P>
Trait Implementations§
Source§impl<P: Debug> Debug for PluginRequestMiddleware<P>
impl<P: Debug> Debug for PluginRequestMiddleware<P>
Source§impl<P> RequestMiddleware for PluginRequestMiddleware<P>where
P: ClientPlugin,
impl<P> RequestMiddleware for PluginRequestMiddleware<P>where
P: ClientPlugin,
Source§fn process_request<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 mut RequestContext,
) -> Pin<Box<dyn Future<Output = MiddlewareResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process_request<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 mut RequestContext,
) -> Pin<Box<dyn Future<Output = MiddlewareResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process the request context Read more
Auto Trait Implementations§
impl<P> Freeze for PluginRequestMiddleware<P>where
P: Freeze,
impl<P> RefUnwindSafe for PluginRequestMiddleware<P>where
P: RefUnwindSafe,
impl<P> Send for PluginRequestMiddleware<P>where
P: Send,
impl<P> Sync for PluginRequestMiddleware<P>where
P: Sync,
impl<P> Unpin for PluginRequestMiddleware<P>where
P: Unpin,
impl<P> UnwindSafe for PluginRequestMiddleware<P>where
P: UnwindSafe,
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