pub trait BaseCtx: Debug + 'static {
// Provided methods
fn timeout(&self) -> Option<Duration> { ... }
fn parent_context(&self) -> Option<&Context> { ... }
}Expand description
The minimal implementation of a context that is required to run a component instance.
Provided Methods§
Sourcefn timeout(&self) -> Option<Duration>
fn timeout(&self) -> Option<Duration>
The timeout to use for the duration of the component’s invocation
Sourcefn parent_context(&self) -> Option<&Context>
fn parent_context(&self) -> Option<&Context>
The parent context to use for the component’s invocation