Struct NoSubscriber
struct NoSubscriber(_)
A no-op Subscriber.
NoSubscriber implements the Subscriber trait by never being enabled,
never being interested in any callsite, and dropping all spans and events.
Implementations
impl NoSubscriber
const fn new() -> SelfReturns a new
NoSubscriber.
impl Clone for NoSubscriber
fn clone(self: &Self) -> NoSubscriber
impl Copy for NoSubscriber
impl Debug for NoSubscriber
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Default for NoSubscriber
fn default() -> NoSubscriber
impl Freeze for NoSubscriber
impl RefUnwindSafe for NoSubscriber
impl Send for NoSubscriber
impl Subscriber for NoSubscriber
fn register_callsite(self: &Self, _: &'static Metadata<'static>) -> Interestfn new_span(self: &Self, _: &Attributes<'_>) -> Idfn event(self: &Self, _event: &Event<'_>)fn record(self: &Self, _span: &Id, _values: &Record<'_>)fn record_follows_from(self: &Self, _span: &Id, _follows: &Id)fn enabled(self: &Self, _metadata: &Metadata<'_>) -> boolfn enter(self: &Self, _span: &Id)fn exit(self: &Self, _span: &Id)
impl Sync for NoSubscriber
impl Unpin for NoSubscriber
impl UnsafeUnpin for NoSubscriber
impl UnwindSafe for NoSubscriber
impl<T> Any for NoSubscriber
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for NoSubscriber
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for NoSubscriber
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for NoSubscriber
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for NoSubscriber
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for NoSubscriber
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for NoSubscriber
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for NoSubscriber
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for NoSubscriber
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>