crb_runtime::context

Trait ManagedContext

Source
pub trait ManagedContext: Context {
    // Required methods
    fn controller(&self) -> &Controller;
    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 controller(&self) -> &Controller

Source

fn shutdown(&mut self)

Marks a context as interrupted.

Implementors§