Struct tracing_tunnel::PersistedMetadata
source · 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