[][src]Struct tracing_subscriber::layer::Context

pub struct Context<'a, S> { /* fields omitted */ }

Represents information about the current context provided to Layers by the wrapped Subscriber.

Methods

impl<'a, S: Subscriber> Context<'a, S>[src]

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

Returns the wrapped subscriber's view of the current span.

Trait Implementations

impl<'a, S> Clone for Context<'a, S>[src]

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

Performs copy-assignment from source. Read more

impl<'a, S: Debug> Debug for Context<'a, S>[src]

Auto Trait Implementations

impl<'a, S> Sync for Context<'a, S> where
    S: Sync

impl<'a, S> Send for Context<'a, S> where
    S: Sync

impl<'a, S> Unpin for Context<'a, S>

impl<'a, S> RefUnwindSafe for Context<'a, S> where
    S: RefUnwindSafe

impl<'a, S> UnwindSafe for Context<'a, S> where
    S: RefUnwindSafe

Blanket Implementations

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]