pub struct NeuronImpl<T, C> {
pub namespace: Arc<dyn Namespace>,
pub schema: Option<String>,
/* private fields */
}Fields§
§namespace: Arc<dyn Namespace>§schema: Option<String>Implementations§
Source§impl<T, C> NeuronImpl<T, C>
impl<T, C> NeuronImpl<T, C>
Trait Implementations§
Source§impl<T, C> Clone for NeuronImpl<T, C>
impl<T, C> Clone for NeuronImpl<T, C>
Source§impl<T, C> Debug for NeuronImpl<T, C>
impl<T, C> Debug for NeuronImpl<T, C>
Source§impl<T, C> Display for NeuronImpl<T, C>
impl<T, C> Display for NeuronImpl<T, C>
Source§impl<T, C> Neuron<T, C> for NeuronImpl<T, C>
impl<T, C> Neuron<T, C> for NeuronImpl<T, C>
fn encode(&self, data: &T) -> Result<Vec<u8>, NeuronError>
fn decode(&self, data: &[u8]) -> Result<T, NeuronError>
fn name(&self) -> String
fn name_without_codec(&self) -> String
fn schema(&self) -> String
fn clone_to_box(&self) -> Box<dyn Neuron<T, C> + Send + Sync + 'static>
fn clone_to_arc(&self) -> Arc<dyn Neuron<T, C> + Send + Sync + 'static>
Auto Trait Implementations§
impl<T, C> Freeze for NeuronImpl<T, C>
impl<T, C> !RefUnwindSafe for NeuronImpl<T, C>
impl<T, C> Send for NeuronImpl<T, C>
impl<T, C> Sync for NeuronImpl<T, C>
impl<T, C> Unpin for NeuronImpl<T, C>
impl<T, C> !UnwindSafe for NeuronImpl<T, C>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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