Struct tracing_subscriber::reload::Handle [−][src]
pub struct Handle<L, S> { /* fields omitted */ }
Expand description
Allows reloading the state of an associated Layer
.
Implementations
Replace the current layer with the provided new_layer
.
Invokes a closure with a mutable reference to the current layer, allowing it to be modified in place.
Returns a clone of the layer’s current value if it still exists.
Otherwise, if the subscriber has been dropped, returns None
.
Trait Implementations
Auto Trait Implementations
impl<L, S> !RefUnwindSafe for Handle<L, S>
impl<L, S> !UnwindSafe for Handle<L, S>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more