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