[−][src]Struct tracing_fmt::FmtSubscriber
A Subscriber
that logs formatted representations of tracing
events.
Methods
impl Subscriber<NewRecorder, Format<Full, SystemTime>, fn() -> Stdout>
[src]
pub fn builder(
) -> Builder<NewRecorder, Format<Full, SystemTime>, Identity, fn() -> Stdout>
[src]
) -> Builder<NewRecorder, Format<Full, SystemTime>, Identity, fn() -> Stdout>
Returns a new Builder
for configuring a format subscriber.
pub fn new(
) -> Subscriber<NewRecorder, Format<Full, SystemTime>, fn() -> Stdout>
[src]
) -> Subscriber<NewRecorder, Format<Full, SystemTime>, fn() -> Stdout>
Returns a new format subscriber with the default configuration.
Trait Implementations
impl<N, E, W> Subscriber for Subscriber<N, E, W> where
E: FormatEvent<N> + 'static,
N: NewVisitor<'a> + 'static,
W: MakeWriter + 'static,
[src]
E: FormatEvent<N> + 'static,
N: NewVisitor<'a> + 'static,
W: MakeWriter + 'static,
fn register_callsite(&self, &'static Metadata<'static>) -> Interest
[src]
fn enabled(&self, &Metadata) -> bool
[src]
fn new_span(&self, attrs: &Attributes) -> Id
[src]
fn record(&self, span: &Id, values: &Record)
[src]
fn record_follows_from(&self, _span: &Id, _follows: &Id)
[src]
fn event(&self, event: &Event)
[src]
fn enter(&self, id: &Id)
[src]
fn exit(&self, id: &Id)
[src]
fn current_span(&self) -> Current
[src]
fn clone_span(&self, id: &Id) -> Id
[src]
fn try_close(&self, id: Id) -> bool
[src]
unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>
[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
impl<N, E, W> Debug for Subscriber<N, E, W> where
E: Debug,
N: Debug,
W: Debug,
[src]
E: Debug,
N: Debug,
W: Debug,
impl Default for Subscriber<NewRecorder, Format<Full, SystemTime>, fn() -> Stdout>
[src]
fn default(
) -> Subscriber<NewRecorder, Format<Full, SystemTime>, fn() -> Stdout>
[src]
) -> Subscriber<NewRecorder, Format<Full, SystemTime>, fn() -> Stdout>
Auto Trait Implementations
impl<N, E, W> Send for Subscriber<N, E, W> where
E: Send,
N: Send,
W: Send,
E: Send,
N: Send,
W: Send,
impl<N, E, W> Unpin for Subscriber<N, E, W> where
E: Unpin,
N: Unpin,
W: Unpin,
E: Unpin,
N: Unpin,
W: Unpin,
impl<N, E, W> Sync for Subscriber<N, E, W> where
E: Sync,
N: Sync,
W: Sync,
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<T> From<T> for T
[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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S> SubscriberExt for S where
S: Subscriber,
[src]
S: Subscriber,
fn with<L>(self, layer: L) -> Layered<L, Self, Self> where
L: Layer<Self>,
[src]
L: Layer<Self>,
Wraps self
with the provided layer
.