Trait organelle::Neuron [] [src]

pub trait Neuron: Sized {
    type Signal: Signal;
    type Synapse: Synapse;
    type Error: Error + Send + From<Error> + 'static;
    fn update(
        self,
        axon: &Axon<Self::Signal, Self::Synapse>,
        msg: Impulse<Self::Signal, Self::Synapse>
    ) -> Result<Self>; }

a specialized soma meant to ensure the Axon is always handled correctly

Associated Types

a message that was not handled by the Axon

the role a connection between somas takes

error that occurs when an update fails

Required Methods

update the nucleus with the Axon and soma message

Implementors