BaseCtx

Trait BaseCtx 

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

Source

fn timeout(&self) -> Option<Duration>

The timeout to use for the duration of the component’s invocation

Source

fn parent_context(&self) -> Option<&Context>

The parent context to use for the component’s invocation

Implementors§