Trait crb_runtime::context::BasicContext

source ·
pub trait BasicContext: Context {
    // Required methods
    fn is_alive(&self) -> bool;
    fn shutdown(&mut self);
}
Expand description

The main features of composable block’s context.

It could be interrupted and contains a method to check a life status of a composable block.

Required Methods§

source

fn is_alive(&self) -> bool

The flag is context alive.

source

fn shutdown(&mut self)

Marks a context as interrupted.

Implementors§