Struct tracing_subscriber::reload::Layer[][src]

pub struct Layer<L, S> { /* fields omitted */ }

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]

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]

Auto Trait Implementations

impl<L, S> RefUnwindSafe for Layer<L, S>

impl<L, S> Send for Layer<L, S> where
    L: Send + Sync

impl<L, S> Sync for Layer<L, S> where
    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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.