#[repr(u8)]pub enum Interest {
Unknown = 0,
Never = 1,
Sometimes = 2,
Always = 3,
}Expand description
Cached interest decision for a callsite. Mirrors tracing::Interest.
0(Unknown) — not yet probed; observer must be queried.1(Never) — disabled; skip the entire emit branch.2(Sometimes) — enabled but still callObserver::enabled()per emit (e.g. severity-floor- per-callsite allowlist).
3(Always) — enabled unconditionally; skip the virtual call.
Variants§
Unknown = 0
Not yet decided — observer will be queried.
Never = 1
Disabled. The emit branch is skipped after one atomic load.
Sometimes = 2
Enabled but Observer::enabled must still run.
Always = 3
Enabled unconditionally; the virtual call is skipped.
Trait Implementations§
impl Copy for Interest
impl Eq for Interest
impl StructuralPartialEq for Interest
Auto Trait Implementations§
impl Freeze for Interest
impl RefUnwindSafe for Interest
impl Send for Interest
impl Sync for Interest
impl Unpin for Interest
impl UnsafeUnpin for Interest
impl UnwindSafe for Interest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.