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§

Returns the number of metadata entries.

Checks whether this metadata collection is empty (i.e., no metadata was recorded yet).

Iterates over contained call site metadata together with the corresponding MetadataIds.

Merges entries from another PersistedMetadata instance.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.