Skip to main content

ContextProvider

Trait ContextProvider 

Source
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§

Source

fn name(&self) -> &str

Human-readable name for logging/debugging

Source

fn get_context(&self) -> Context

Gather context. Should be fast and non-blocking.

Implementors§