pub struct SimpleSynapseExternalErased { /* private fields */ }Expand description
A truly type-erased external synapse.
Implementations§
Source§impl SimpleSynapseExternalErased
impl SimpleSynapseExternalErased
pub fn new(neuron: Arc<dyn NeuronErased + Send + Sync + 'static>) -> Self
pub fn new_with_sender( neuron: Arc<dyn NeuronErased + Send + Sync + 'static>, sender: Arc<dyn RawSender>, ) -> Self
Trait Implementations§
Source§impl SynapseExternalErased for SimpleSynapseExternalErased
impl SynapseExternalErased for SimpleSynapseExternalErased
fn as_any(&self) -> &dyn Any
fn neuron(&self) -> Arc<dyn NeuronErased + Send + Sync + 'static>
fn neuron_name(&self) -> String
fn codec_name(&self) -> String
fn neuron_schema(&self) -> String
fn payload_type_id(&self) -> TypeId
fn codec_type_id(&self) -> TypeId
fn clone_to_box(&self) -> Box<dyn SynapseExternalErased + Send + Sync + 'static>
fn clone_to_arc( &self, ) -> Arc<RwLock<dyn SynapseExternalErased + Send + Sync + 'static>>
fn transduce_erased( &self, payload: Arc<dyn PayloadRawErased + Send + Sync + 'static>, ) -> Pin<Box<dyn Future<Output = Result<(Vec<()>, Vec<()>), SynapseError>> + Send + 'static>>
fn transmit_erased( &self, payload: Arc<dyn PayloadRawErased + Send + Sync + 'static>, ) -> Pin<Box<dyn Future<Output = Result<(Vec<()>, Vec<()>), SynapseError>> + Send + 'static>>
fn react_erased( &mut self, reactants: Vec<Arc<dyn ReactantErased + Send + Sync + 'static>>, raw_reactants: Vec<Arc<dyn ReactantRawErased + Send + Sync + 'static>>, error_reactants: Vec<Arc<dyn ErrorReactantErased + Send + Sync>>, )
Auto Trait Implementations§
impl Freeze for SimpleSynapseExternalErased
impl !RefUnwindSafe for SimpleSynapseExternalErased
impl Send for SimpleSynapseExternalErased
impl Sync for SimpleSynapseExternalErased
impl Unpin for SimpleSynapseExternalErased
impl !UnwindSafe for SimpleSynapseExternalErased
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