pub struct ObsCallsiteRegistry { /* private fields */ }Expand description
Process-local callsite registry. Spec 31 § 3.2.
Concurrent access is allowed: the bridge writes once per first-sight
callsite and reads once per envelope. DashMap matches CLAUDE.md
guidance on concurrent maps.
Implementations§
Source§impl ObsCallsiteRegistry
impl ObsCallsiteRegistry
Sourcepub fn insert_if_absent(
&self,
record: CallsiteRecord,
) -> (Arc<CallsiteRecord>, bool)
pub fn insert_if_absent( &self, record: CallsiteRecord, ) -> (Arc<CallsiteRecord>, bool)
Insert record if absent. Returns (record, was_new) where
was_new == true only when this call inserted the record.
Spec 31 § 3.3.
Sourcepub fn snapshot(&self) -> Vec<Arc<CallsiteRecord>>
pub fn snapshot(&self) -> Vec<Arc<CallsiteRecord>>
Iterate records (snapshot — drops Refs before returning).
Trait Implementations§
Source§impl Debug for ObsCallsiteRegistry
impl Debug for ObsCallsiteRegistry
Source§impl Default for ObsCallsiteRegistry
impl Default for ObsCallsiteRegistry
Source§fn default() -> ObsCallsiteRegistry
fn default() -> ObsCallsiteRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ObsCallsiteRegistry
impl !RefUnwindSafe for ObsCallsiteRegistry
impl Send for ObsCallsiteRegistry
impl Sync for ObsCallsiteRegistry
impl Unpin for ObsCallsiteRegistry
impl UnsafeUnpin for ObsCallsiteRegistry
impl UnwindSafe for ObsCallsiteRegistry
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