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
type Signal: Signal
a message that was not handled by the Axon
type Synapse: Synapse
the role a connection between somas takes
type Error: Error + Send + From<Error> + 'static
error that occurs when an update fails
Required Methods
fn update(
self,
axon: &Axon<Self::Signal, Self::Synapse>,
msg: Impulse<Self::Signal, Self::Synapse>
) -> Result<Self>
self,
axon: &Axon<Self::Signal, Self::Synapse>,
msg: Impulse<Self::Signal, Self::Synapse>
) -> Result<Self>
update the nucleus with the Axon and soma message