Struct organelle::Axon
[−]
[src]
pub struct Axon<T: Soma + 'static> { /* fields omitted */ }
wrap a soma with a set of requirements that will be validated upon startup
Methods
impl<T: Soma + 'static> Axon<T>
[src]
pub fn new(
soma: T,
dendrites: Vec<Constraint<T::Synapse>>,
terminals: Vec<Constraint<T::Synapse>>
) -> Self
[src]
soma: T,
dendrites: Vec<Constraint<T::Synapse>>,
terminals: Vec<Constraint<T::Synapse>>
) -> Self
wrap a soma with constraints specified by dendrite and terminal constraints
Trait Implementations
impl<T: Soma + 'static> Soma for Axon<T>
[src]
type Synapse = T::Synapse
the synapse a synapse plays in a connection between somas.
type Error = Error
the types of errors that this soma can return
fn probe(
self,
_settings: Settings
) -> Box<Future<Item = <Result<(Self, SomaData)> as IsResult>::Ok, Error = <Result<(Self, SomaData)> as IsResult>::Err>>
[src]
self,
_settings: Settings
) -> Box<Future<Item = <Result<(Self, SomaData)> as IsResult>::Ok, Error = <Result<(Self, SomaData)> as IsResult>::Err>>
probe the internal structure of this soma
fn update(
self,
imp: Impulse<T::Synapse>
) -> Box<Future<Item = <Result<Self> as IsResult>::Ok, Error = <Result<Self> as IsResult>::Err>>
[src]
self,
imp: Impulse<T::Synapse>
) -> Box<Future<Item = <Result<Self> as IsResult>::Ok, Error = <Result<Self> as IsResult>::Err>>
react to a single impulse
fn run(
self,
handle: Handle
) -> Box<Future<Item = <Result<()> as IsResult>::Ok, Error = <Result<()> as IsResult>::Err>> where
Self: 'static,
[src]
self,
handle: Handle
) -> Box<Future<Item = <Result<()> as IsResult>::Ok, Error = <Result<()> as IsResult>::Err>> where
Self: 'static,
convert this soma into a future that can be passed to an event loop