pub struct LoggingInterceptor { /* private fields */ }Expand description
Logging interceptor that marks requests for logging.
Implementations§
Source§impl LoggingInterceptor
impl LoggingInterceptor
Sourcepub fn log_requests(self, enabled: bool) -> Self
pub fn log_requests(self, enabled: bool) -> Self
Configure request logging.
Sourcepub fn log_responses(self, enabled: bool) -> Self
pub fn log_responses(self, enabled: bool) -> Self
Configure response logging.
Trait Implementations§
Source§impl Clone for LoggingInterceptor
impl Clone for LoggingInterceptor
Source§fn clone(&self) -> LoggingInterceptor
fn clone(&self) -> LoggingInterceptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoggingInterceptor
impl Debug for LoggingInterceptor
Source§impl Default for LoggingInterceptor
impl Default for LoggingInterceptor
Source§fn default() -> LoggingInterceptor
fn default() -> LoggingInterceptor
Returns the “default value” for a type. Read more
Source§impl Interceptor for LoggingInterceptor
impl Interceptor for LoggingInterceptor
Auto Trait Implementations§
impl Freeze for LoggingInterceptor
impl RefUnwindSafe for LoggingInterceptor
impl Send for LoggingInterceptor
impl Sync for LoggingInterceptor
impl Unpin for LoggingInterceptor
impl UnsafeUnpin for LoggingInterceptor
impl UnwindSafe for LoggingInterceptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).