pub struct SyncDcontextLayerBuilder<S> { /* private fields */ }Expand description
Builder for configuring a SyncDcontextLayer.
Implementations§
Source§impl<S> SyncDcontextLayerBuilder<S>
impl<S> SyncDcontextLayerBuilder<S>
Sourcepub fn include_span_info(self) -> Self
pub fn include_span_info(self) -> Self
Include span metadata (name, target, level) as a SpanInfo context value.
Sourcepub fn async_aware(self) -> Self
pub fn async_aware(self) -> Self
Make this layer async-aware: skip when task-local context is available.
Sourcepub fn build(self) -> SyncDcontextLayer<S>
pub fn build(self) -> SyncDcontextLayer<S>
Build the configured SyncDcontextLayer.
Auto Trait Implementations§
impl<S> Freeze for SyncDcontextLayerBuilder<S>
impl<S> RefUnwindSafe for SyncDcontextLayerBuilder<S>
impl<S> Send for SyncDcontextLayerBuilder<S>
impl<S> Sync for SyncDcontextLayerBuilder<S>
impl<S> Unpin for SyncDcontextLayerBuilder<S>
impl<S> UnsafeUnpin for SyncDcontextLayerBuilder<S>
impl<S> UnwindSafe for SyncDcontextLayerBuilder<S>
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