pub struct LoggerPlugin {
pub enabled: bool,
pub verbose: bool,
}Expand description
Tracing-based logger plugin (request, response, retry, error).
Fields§
§enabled: bool§verbose: boolImplementations§
Source§impl LoggerPlugin
impl LoggerPlugin
pub fn new() -> LoggerPlugin
pub fn enabled(self, enabled: bool) -> LoggerPlugin
pub fn verbose(self, verbose: bool) -> LoggerPlugin
Trait Implementations§
Source§impl Clone for LoggerPlugin
impl Clone for LoggerPlugin
Source§fn clone(&self) -> LoggerPlugin
fn clone(&self) -> LoggerPlugin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LoggerPlugin
impl Debug for LoggerPlugin
Source§impl Default for LoggerPlugin
impl Default for LoggerPlugin
Source§fn default() -> LoggerPlugin
fn default() -> LoggerPlugin
Returns the “default value” for a type. Read more
Source§impl Plugin for LoggerPlugin
impl Plugin for LoggerPlugin
fn id(&self) -> &'static str
fn hooks(&self) -> Hooks
fn init<'life0, 'life1, 'async_trait>(
&'life0 self,
_prepared: &'life1 mut PreparedRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations§
impl Freeze for LoggerPlugin
impl RefUnwindSafe for LoggerPlugin
impl Send for LoggerPlugin
impl Sync for LoggerPlugin
impl Unpin for LoggerPlugin
impl UnsafeUnpin for LoggerPlugin
impl UnwindSafe for LoggerPlugin
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