#[non_exhaustive]#[repr(u8)]pub enum CallsiteSource {
TracingEvent = 1,
TracingSpan = 2,
Forensic = 3,
Instrument = 4,
}Expand description
Callsite source — drives both human display and the BLAKE3 input. Spec 31 § 3.4 enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TracingEvent = 1
Tracing event (Direction A bridge).
TracingSpan = 2
Tracing span (Direction A bridge, ObsSpanCompleted).
Forensic = 3
obs::forensic! macro.
Instrument = 4
#[obs::instrument]-emitted ObsFnEntered/ObsFnExited.
Implementations§
Trait Implementations§
Source§impl Clone for CallsiteSource
impl Clone for CallsiteSource
Source§fn clone(&self) -> CallsiteSource
fn clone(&self) -> CallsiteSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CallsiteSource
impl Debug for CallsiteSource
Source§impl Hash for CallsiteSource
impl Hash for CallsiteSource
Source§impl PartialEq for CallsiteSource
impl PartialEq for CallsiteSource
Source§fn eq(&self, other: &CallsiteSource) -> bool
fn eq(&self, other: &CallsiteSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CallsiteSource
impl Eq for CallsiteSource
impl StructuralPartialEq for CallsiteSource
Auto Trait Implementations§
impl Freeze for CallsiteSource
impl RefUnwindSafe for CallsiteSource
impl Send for CallsiteSource
impl Sync for CallsiteSource
impl Unpin for CallsiteSource
impl UnsafeUnpin for CallsiteSource
impl UnwindSafe for CallsiteSource
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.