Struct tracing_core::callsite::Callsites
source · struct Callsites {
list_head: AtomicPtr<DefaultCallsite>,
has_locked_callsites: AtomicBool,
}
Fields§
§list_head: AtomicPtr<DefaultCallsite>
§has_locked_callsites: AtomicBool
Implementations§
source§impl Callsites
impl Callsites
sourcefn rebuild_interest(&self, dispatchers: Rebuilder<'_>)
fn rebuild_interest(&self, dispatchers: Rebuilder<'_>)
Rebuild Interest
s for all callsites in the registry.
This also re-computes the max level hint.
sourcefn push_dyn(&self, callsite: &'static dyn Callsite)
fn push_dyn(&self, callsite: &'static dyn Callsite)
Push a dyn Callsite
trait object to the callsite registry.
This will attempt to lock the callsites vector.
sourcefn push_default(&self, callsite: &'static DefaultCallsite)
fn push_default(&self, callsite: &'static DefaultCallsite)
Push a DefaultCallsite
to the callsite registry.
If we know the callsite being pushed is a DefaultCallsite
, we can push
it to the linked list without having to acquire a lock.
Auto Trait Implementations§
impl !Freeze for Callsites
impl RefUnwindSafe for Callsites
impl Send for Callsites
impl Sync for Callsites
impl Unpin for Callsites
impl !UnwindSafe for Callsites
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