Struct tracing_subscriber::reload::Handle
source · [−]pub struct Handle<L, S> { /* private fields */ }This is supported on crate feature
std only.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.
pub fn clone_current(&self) -> Option<L>ⓘNotable traits for Option<L>impl<L, S> Layer<S> for Option<L> where
L: Layer<S>,
S: Subscriber, where
L: Clone,
pub fn clone_current(&self) -> Option<L>ⓘNotable traits for Option<L>impl<L, S> Layer<S> for Option<L> where
L: Layer<S>,
S: Subscriber, where
L: Clone,
Notable traits for Option<L>
impl<L, S> Layer<S> for Option<L> where
L: Layer<S>,
S: Subscriber, 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
