Struct tracing_subscriber::reload::Handle
source · [−]pub struct Handle<L, S> { /* private fields */ }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
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
