pub struct TestTraceBuilder { /* private fields */ }Expand description
Implementations§
Source§impl TestTraceBuilder
impl TestTraceBuilder
Sourcepub fn with_metadata(
self,
key: impl Into<String>,
value: impl Into<Value>,
) -> Self
pub fn with_metadata( self, key: impl Into<String>, value: impl Into<Value>, ) -> Self
Adds custom metadata to the trace.
Sourcepub fn with_console_output(self, enabled: bool) -> Self
pub fn with_console_output(self, enabled: bool) -> Self
Enables or disables console output.
Sourcepub fn with_min_level(self, level: TraceLevel) -> Self
pub fn with_min_level(self, level: TraceLevel) -> Self
Sets the minimum log level.
Auto Trait Implementations§
impl Freeze for TestTraceBuilder
impl RefUnwindSafe for TestTraceBuilder
impl Send for TestTraceBuilder
impl Sync for TestTraceBuilder
impl Unpin for TestTraceBuilder
impl UnwindSafe for TestTraceBuilder
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> 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).