Struct tracing_subscriber::reload::Layer [−][src]
Wraps a Layer
, allowing it to be reloaded dynamically at runtime.
Implementations
impl<L, S> Layer<L, S> where
L: Layer<S> + 'static,
S: Subscriber,
[src]
L: Layer<S> + 'static,
S: Subscriber,
pub fn new(inner: L) -> (Self, Handle<L, S>)
[src]
Wraps the given Layer
, returning a Layer
and a Handle
that allows
the inner type to be modified at runtime.
pub fn handle(&self) -> Handle<L, S>
[src]
Returns a Handle
that can be used to reload the wrapped Layer
.
Trait Implementations
impl<L: Debug, S: Debug> Debug for Layer<L, S>
[src]
impl<L, S> Layer<S> for Layer<L, S> where
L: Layer<S> + 'static,
S: Subscriber,
[src]
L: Layer<S> + 'static,
S: Subscriber,
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
[src]
fn enabled(&self, metadata: &Metadata<'_>, ctx: Context<'_, S>) -> bool
[src]
fn new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)
[src]
fn on_record(&self, span: &Id, values: &Record<'_>, ctx: Context<'_, S>)
[src]
fn on_follows_from(&self, span: &Id, follows: &Id, ctx: Context<'_, S>)
[src]
fn on_event(&self, event: &Event<'_>, ctx: Context<'_, S>)
[src]
fn on_enter(&self, id: &Id, ctx: Context<'_, S>)
[src]
fn on_exit(&self, id: &Id, ctx: Context<'_, S>)
[src]
fn on_close(&self, id: Id, ctx: Context<'_, S>)
[src]
fn on_id_change(&self, old: &Id, new: &Id, ctx: Context<'_, S>)
[src]
fn and_then<L>(self, layer: L) -> Layered<L, Self, S> where
L: Layer<S>,
Self: Sized,
[src]
L: Layer<S>,
Self: Sized,
fn with_subscriber(self, inner: S) -> Layered<Self, S> where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl<L, S> RefUnwindSafe for Layer<L, S>
impl<L, S> Send for Layer<L, S> where
L: Send + Sync,
L: Send + Sync,
impl<L, S> Sync for Layer<L, S> where
L: Send + Sync,
L: Send + Sync,
impl<L, S> Unpin for Layer<L, S>
impl<L, S> UnwindSafe for Layer<L, S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,