pub struct CommonInterceptor { /* private fields */ }Expand description
Default interceptor implementation with logging
Implementations§
Source§impl CommonInterceptor
impl CommonInterceptor
pub fn new(service: &str) -> CommonInterceptor
Trait Implementations§
Source§impl HttpInterceptor for CommonInterceptor
impl HttpInterceptor for CommonInterceptor
fn fail<'life0, 'life1, 'async_trait>(
&'life0 self,
status: u16,
data: &'life1 Bytes,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn request<'life0, 'async_trait>(
&'life0 self,
req: RequestBuilder,
) -> Pin<Box<dyn Future<Output = Result<RequestBuilder, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn response<'life0, 'async_trait>(
&'life0 self,
data: Bytes,
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_done<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
stats: &'life1 HttpStats,
err: Option<&'life2 Error>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for CommonInterceptor
impl RefUnwindSafe for CommonInterceptor
impl Send for CommonInterceptor
impl Sync for CommonInterceptor
impl Unpin for CommonInterceptor
impl UnwindSafe for CommonInterceptor
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