Trait organelle::Cell [] [src]

pub trait Cell: Sized {
    type Message: CellMessage;
    type Role: CellRole;
    fn update(self, _msg: Protocol<Self::Message, Self::Role>) -> Result<Self> { ... }
fn run(self) -> Result<()> { ... } }

defines an interface for a cell of any type

generic across the user-defined message to be passed between cells and the user-defined roles for connections

Associated Types

user-defined message to be passed between cells

user-defined roles for connections

Provided Methods

apply any changes to the cell's state as a result of _msg

spin up an event loop and run cell

Implementors