[][src]Struct tracing_subscriber::fmt::Subscriber

pub struct Subscriber<N = NewRecorder, E = Format<Full>, W = fn() -> Stdout> { /* fields omitted */ }

A Subscriber that logs formatted representations of tracing events.

Methods

impl Subscriber[src]

pub fn builder() -> Builder[src]

Returns a new Builder for configuring a format subscriber.

pub fn new() -> Self[src]

Returns a new format subscriber with the default configuration.

Trait Implementations

impl Default for Subscriber[src]

impl<N: Debug, E: Debug, W: Debug> Debug for Subscriber<N, E, W>[src]

impl<N, E, W> Subscriber for Subscriber<N, E, W> where
    N: for<'a> NewVisitor<'a> + 'static,
    E: FormatEvent<N> + 'static,
    W: MakeWriter + 'static, 
[src]

fn drop_span(&self, _id: Id)[src]

Deprecated since 0.1.2:

use Subscriber::try_close instead

This method is soft-deprecated. Read more

Auto Trait Implementations

impl<N, E, W> Send for Subscriber<N, E, W> where
    E: Send,
    N: Send,
    W: Send

impl<N, E, W> Unpin for Subscriber<N, E, W> where
    E: Unpin,
    N: Unpin,
    W: Unpin

impl<N, E, W> Sync for Subscriber<N, E, W> where
    E: Sync,
    N: Sync,
    W: Sync

impl<N = NewRecorder, E = Format<Full, SystemTime>, W = fn() -> Stdout> !UnwindSafe for Subscriber<N, E, W>

impl<N = NewRecorder, E = Format<Full, SystemTime>, W = fn() -> Stdout> !RefUnwindSafe for Subscriber<N, E, W>

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]

Wraps self with the provided layer.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T[src]