[][src]Struct tracing_subscriber::layer::Layered

pub struct Layered<L, I, S = I> { /* fields omitted */ }

A Subscriber composed of a Subscriber wrapped by one or more Layers.

Trait Implementations

impl<S, A, B> Layer<S> for Layered<A, B, S> where
    A: Layer<S>,
    B: Layer<S>,
    S: Subscriber
[src]

fn and_then<L>(self, layer: L) -> Layered<L, Self, S> where
    L: Layer<S>,
    Self: Sized
[src]

Composes this layer around the given Layer, returning a Layered struct implementing Layer. Read more

fn with_subscriber(self, inner: S) -> Layered<Self, S> where
    Self: Sized
[src]

Composes this Layer with the given [Subscriber], returning a Layered struct that implements [Subscriber]. Read more

impl<L: Clone, I: Clone, S: Clone> Clone for Layered<L, I, S>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<L: Debug, I: Debug, S: Debug> Debug for Layered<L, I, S>[src]

impl<L, S> Subscriber for Layered<L, S> where
    L: Layer<S>,
    S: Subscriber
[src]

fn current_span(&self) -> Current[src]

Returns a type representing this subscriber's view of the current span. Read more

unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>[src]

If self is the same type as the provided TypeId, returns an untyped *const pointer to that type. Otherwise, returns None. Read more

Auto Trait Implementations

impl<L, I, S> Sync for Layered<L, I, S> where
    I: Sync,
    L: Sync

impl<L, I, S> Send for Layered<L, I, S> where
    I: Send,
    L: Send

impl<L, I, S> Unpin for Layered<L, I, S> where
    I: Unpin,
    L: Unpin

impl<L, I, S> RefUnwindSafe for Layered<L, I, S> where
    I: RefUnwindSafe,
    L: RefUnwindSafe

impl<L, I, S> UnwindSafe for Layered<L, I, S> where
    I: UnwindSafe,
    L: UnwindSafe

Blanket Implementations

impl<S> SubscriberExt for S where
    S: Subscriber
[src]

fn with<L>(self, layer: L) -> Layered<L, Self> where
    L: Layer<Self>,
    Self: Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> 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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]