pub struct GanglionInprocess { /* private fields */ }Implementations§
Source§impl GanglionInprocess
impl GanglionInprocess
pub fn new() -> Self
Helper to create an Arc<Mutex
pub fn new_with_filters( relevant_neurons: HashSet<String>, ignored_neurons: HashSet<String>, ) -> Self
pub fn create_synapse<T, C>( neuron: Arc<dyn Neuron<T, C> + Send + Sync>, reactants: Vec<Arc<dyn Reactant<T, C> + Send + Sync>>, error_reactants: Vec<Arc<dyn ErrorReactant<T, C> + Send + Sync>>, ) -> SynapseInprocess<T, C>
Trait Implementations§
Source§impl Default for GanglionInprocess
impl Default for GanglionInprocess
Source§impl Ganglion for GanglionInprocess
impl Ganglion for GanglionInprocess
Source§impl GanglionInternal for GanglionInprocess
impl GanglionInternal for GanglionInprocess
fn transmit( &mut self, payload: Arc<dyn PayloadErased + Send + Sync + 'static>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, GanglionError>> + Send + 'static>>
fn react( &mut self, neuron_name: String, reactants: Vec<Arc<dyn ReactantErased + Send + Sync + 'static>>, error_reactants: Vec<Arc<dyn ErrorReactantErased + Send + Sync>>, ) -> Pin<Box<dyn Future<Output = Result<(), GanglionError>> + Send + 'static>>
fn unique_id(&self) -> Uuid
Auto Trait Implementations§
impl Freeze for GanglionInprocess
impl RefUnwindSafe for GanglionInprocess
impl Send for GanglionInprocess
impl Sync for GanglionInprocess
impl Unpin for GanglionInprocess
impl UnwindSafe for GanglionInprocess
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more