pub struct Subscriber<D, S = Option<NoWriter>> { /* private fields */ }
Implementations§
Source§impl<D, S> Subscriber<D, S>
impl<D, S> Subscriber<D, S>
pub fn display_only(display: D) -> Self
pub fn with_serial<S2>(self, port: S2) -> Subscriber<D, S2>where
for<'a> S2: MakeWriter<'a> + 'static,
Trait Implementations§
Source§impl<D, S> Collect for Subscriber<D, S>where
for<'a> D: MakeWriter<'a> + 'static,
for<'a> <D as MakeWriter<'a>>::Writer: SetColor,
for<'a> S: MakeWriter<'a> + 'static,
for<'a> <S as MakeWriter<'a>>::Writer: SetColor,
impl<D, S> Collect for Subscriber<D, S>where
for<'a> D: MakeWriter<'a> + 'static,
for<'a> <D as MakeWriter<'a>>::Writer: SetColor,
for<'a> S: MakeWriter<'a> + 'static,
for<'a> <S as MakeWriter<'a>>::Writer: SetColor,
Source§fn record(&self, _span: &Id, _values: &Record<'_>)
fn record(&self, _span: &Id, _values: &Record<'_>)
Record a set of values on a span. Read more
Source§fn record_follows_from(&self, _span: &Id, _follows: &Id)
fn record_follows_from(&self, _span: &Id, _follows: &Id)
Source§fn current_span(&self) -> Current
fn current_span(&self) -> Current
Returns a type representing this collector’s view of the current span. Read more
§fn on_register_dispatch(&self, collector: &Dispatch)
fn on_register_dispatch(&self, collector: &Dispatch)
Invoked when this collector becomes a [
Dispatch
]. Read more§fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
§fn max_level_hint(&self) -> Option<LevelFilter>
fn max_level_hint(&self) -> Option<LevelFilter>
Returns the highest verbosity level that this
Collector
will
enable, or None
, if the collector does not implement level-based
filtering or chooses not to implement this method. Read more§fn event_enabled(&self, event: &Event<'_>) -> bool
fn event_enabled(&self, event: &Event<'_>) -> bool
Determine if an [
Event
] should be recorded. Read more§fn clone_span(&self, id: &Id) -> Id
fn clone_span(&self, id: &Id) -> Id
§fn drop_span(&self, _id: Id)
fn drop_span(&self, _id: Id)
👎Deprecated since 0.1.2: use
Collector::try_close
insteadThis method is deprecated. Read more
Source§impl<D> Default for Subscriber<D>where
for<'a> D: MakeWriter<'a> + 'static + Default,
for<'a> <D as MakeWriter<'a>>::Writer: SetColor,
impl<D> Default for Subscriber<D>where
for<'a> D: MakeWriter<'a> + 'static + Default,
for<'a> <D as MakeWriter<'a>>::Writer: SetColor,
Auto Trait Implementations§
impl<D, S = Option<NoWriter>> !Freeze for Subscriber<D, S>
impl<D, S> RefUnwindSafe for Subscriber<D, S>where
D: RefUnwindSafe,
S: RefUnwindSafe,
impl<D, S> Send for Subscriber<D, S>
impl<D, S> Sync for Subscriber<D, S>
impl<D, S> Unpin for Subscriber<D, S>
impl<D, S> UnwindSafe for Subscriber<D, S>where
D: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.