pub struct PersistedMetadata { /* private fields */ }
Available on crate feature
receiver
only.Expand description
Information about span / event [Metadata
] that is serializable and thus
can be persisted across multiple TracingEventReceiver
lifetimes.
PersistedMetadata
logically corresponds to a program executable (e.g., a WASM module),
not to its particular execution (e.g., a WASM module instance).
Multiple executions of the same executable can (and optimally should)
share PersistedMetadata
.
Implementations§
Source§impl PersistedMetadata
impl PersistedMetadata
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Checks whether this metadata collection is empty (i.e., no metadata was recorded yet).
Sourcepub fn iter(&self) -> impl Iterator<Item = (MetadataId, &CallSiteData)> + '_
pub fn iter(&self) -> impl Iterator<Item = (MetadataId, &CallSiteData)> + '_
Iterates over contained call site metadata together with the corresponding
MetadataId
s.
Trait Implementations§
Source§impl Clone for PersistedMetadata
impl Clone for PersistedMetadata
Source§fn clone(&self) -> PersistedMetadata
fn clone(&self) -> PersistedMetadata
Returns a copy of the value. Read more
1.0.0 · 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 PersistedMetadata
impl Debug for PersistedMetadata
Source§impl Default for PersistedMetadata
impl Default for PersistedMetadata
Source§fn default() -> PersistedMetadata
fn default() -> PersistedMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersistedMetadata
impl<'de> Deserialize<'de> for PersistedMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PersistedMetadata
impl RefUnwindSafe for PersistedMetadata
impl Send for PersistedMetadata
impl Sync for PersistedMetadata
impl Unpin for PersistedMetadata
impl UnwindSafe for PersistedMetadata
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)