pub trait ContextProvider: Send + Sync {
// Required method
fn name(&self) -> &str;
}Expand description
The shared identity of every context provider.
A provider implements this once, then one capability trait per kind of
context it serves: crate::WeatherBriefingProvider today, and the
stubbed crate::OwnshipStatusProvider / crate::ControlCommandProvider
later. Splitting by capability (not by provider) keeps each consumer
depending only on the context it actually needs, and lets a new source
implement just the capabilities it offers.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".