Struct organelle::Effector [] [src]

pub struct Effector<M, R> where
    M: CellMessage,
    R: CellRole
{ /* fields omitted */ }

the effector is a cell's method of communicating between other cells

the effector can send a message to any destination, provided you have its handle. it will route these messages asynchronously to their destination, so communication can be tricky, however, this is truly the best way I've found to compose efficient, scalable systems.

Methods

impl<M, R> Effector<M, R> where
    M: CellMessage,
    R: CellRole
[src]

[src]

get the Handle associated with the cell that owns this effector

[src]

send a message to dest cell

[src]

send a batch of messages in order to dest cell

[src]

stop the organelle

[src]

stop the organelle because of an error

[src]

spawn a future on the reactor

[src]

get a reactor handle

[src]

get a reactor remote

Trait Implementations

impl<M, R> Clone for Effector<M, R> where
    M: CellMessage,
    R: CellRole
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more