pub struct SimpleSynapseInternalErased { /* private fields */ }Expand description
A truly type-erased internal synapse that doesn’t rely on generic parameters.
Implementations§
Trait Implementations§
Source§impl SynapseInternalErased for SimpleSynapseInternalErased
impl SynapseInternalErased for SimpleSynapseInternalErased
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 SynapseInternalErased + Send + Sync + 'static>
fn clone_to_arc( &self, ) -> Arc<RwLock<dyn SynapseInternalErased + Send + Sync + 'static>>
fn transduce_erased( &self, payload: Arc<dyn PayloadErased + Send + Sync + 'static>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, SynapseError>> + Send + 'static>>
fn transmit_erased( &self, payload: Arc<dyn PayloadErased + Send + Sync + 'static>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, SynapseError>> + Send + 'static>>
fn react_erased( &mut self, reactants: Vec<Arc<dyn ReactantErased + Send + Sync + 'static>>, error_reactants: Vec<Arc<dyn ErrorReactantErased + Send + Sync>>, )
Auto Trait Implementations§
impl Freeze for SimpleSynapseInternalErased
impl !RefUnwindSafe for SimpleSynapseInternalErased
impl Send for SimpleSynapseInternalErased
impl Sync for SimpleSynapseInternalErased
impl Unpin for SimpleSynapseInternalErased
impl !UnwindSafe for SimpleSynapseInternalErased
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