pub trait ContextProvider: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn get_context(&self) -> Context;
}Expand description
Trait for components that contribute to the runtime context.
Required Methods§
Sourcefn get_context(&self) -> Context
fn get_context(&self) -> Context
Gather context. Should be fast and non-blocking.