Struct organelle::Eukaryote
[−]
[src]
pub struct Eukaryote<M: CellMessage, R: CellRole, N> where
N: Nucleus<Message = M, Role = R> + Sized + 'static, { /* fields omitted */ }
cell used to wrap a Soma and a cell specialized with Nucleus
Methods
impl<M: CellMessage, R: CellRole, N> Eukaryote<M, R, N> where
N: Nucleus<Message = M, Role = R> + Sized + 'static,
[src]
N: Nucleus<Message = M, Role = R> + Sized + 'static,
fn new(
nucleus: N,
inputs: Vec<Constraint<R>>,
outputs: Vec<Constraint<R>>
) -> Result<Self>
[src]
nucleus: N,
inputs: Vec<Constraint<R>>,
outputs: Vec<Constraint<R>>
) -> Result<Self>
wrap a nucleus and constrain the soma
Trait Implementations
impl<M: CellMessage, R: CellRole, N> Cell for Eukaryote<M, R, N> where
N: Nucleus<Message = M, Role = R>,
[src]
N: Nucleus<Message = M, Role = R>,
type Message = M
user-defined message to be passed between cells
type Role = R
user-defined roles for connections
fn update(self, msg: Protocol<Self::Message, Self::Role>) -> Result<Self>
[src]
apply any changes to the cell's state as a result of _msg
fn run(self) -> Result<()>
[src]
spin up an event loop and run cell