pub trait DirectiveStore: Send + Sync {
// Required method
fn load(&self) -> Arc<DirectiveSet>;
}Expand description
The backend holding the fleet’s active diagnostics directives. Proxy instances poll it fresh per request; a controller publishes new sets into it.
Required Methods§
Sourcefn load(&self) -> Arc<DirectiveSet>
fn load(&self) -> Arc<DirectiveSet>
The currently active directive set. Called on the request hot path, so it
must be cheap (an Arc clone of a cached snapshot), never blocking I/O.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl DirectiveStore for Arc<DirectiveSet>
A fixed set: the directives never change for this process. The default store,
and the wrapper for a statically configured DirectiveSet.
impl DirectiveStore for Arc<DirectiveSet>
A fixed set: the directives never change for this process. The default store,
and the wrapper for a statically configured DirectiveSet.