crb_runtime::context

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