diagnostics_data

Trait DiagnosticsData

Source
pub trait DiagnosticsData {
    type Metadata: Metadata;
    type Key: AsRef<str> + Clone + DeserializeOwned + Eq + FromStr + Hash + Send + 'static;

    const DATA_TYPE: DataType;
}
Expand description

A trait implemented by marker types which denote “kinds” of diagnostics data.

Required Associated Constants§

Source

const DATA_TYPE: DataType

Used to query for this kind of metadata in the ArchiveAccessor.

Required Associated Types§

Source

type Metadata: Metadata

The type of metadata included in results of this type.

Source

type Key: AsRef<str> + Clone + DeserializeOwned + Eq + FromStr + Hash + Send + 'static

The type of key used for indexing node hierarchies in the payload.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§