pub struct NeuronServiceImpl { /* private fields */ }Expand description
Default implementation of NeuronService
Implementations§
Source§impl NeuronServiceImpl
impl NeuronServiceImpl
pub fn new(connectome: Arc<RwLock<ConnectomeManager>>) -> Self
Trait Implementations§
Source§impl NeuronService for NeuronServiceImpl
impl NeuronService for NeuronServiceImpl
Source§fn create_neuron<'life0, 'async_trait>(
&'life0 self,
params: CreateNeuronParams,
) -> Pin<Box<dyn Future<Output = ServiceResult<NeuronInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_neuron<'life0, 'async_trait>(
&'life0 self,
params: CreateNeuronParams,
) -> Pin<Box<dyn Future<Output = ServiceResult<NeuronInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a neuron in a cortical area Read more
Source§fn delete_neuron<'life0, 'async_trait>(
&'life0 self,
neuron_id: u64,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_neuron<'life0, 'async_trait>(
&'life0 self,
neuron_id: u64,
) -> Pin<Box<dyn Future<Output = ServiceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete a neuron by ID Read more
Source§fn get_neuron<'life0, 'async_trait>(
&'life0 self,
neuron_id: u64,
) -> Pin<Box<dyn Future<Output = ServiceResult<NeuronInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_neuron<'life0, 'async_trait>(
&'life0 self,
neuron_id: u64,
) -> Pin<Box<dyn Future<Output = ServiceResult<NeuronInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get neuron information Read more
Source§fn get_neuron_at_coordinates<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
coordinates: (u32, u32, u32),
) -> Pin<Box<dyn Future<Output = ServiceResult<Option<NeuronInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_neuron_at_coordinates<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
coordinates: (u32, u32, u32),
) -> Pin<Box<dyn Future<Output = ServiceResult<Option<NeuronInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get neuron by coordinates in a cortical area Read more
Source§fn list_neurons_in_area<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<NeuronInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_neurons_in_area<'life0, 'life1, 'async_trait>(
&'life0 self,
cortical_id: &'life1 str,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = ServiceResult<Vec<NeuronInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all neurons in a cortical area Read more
Auto Trait Implementations§
impl Freeze for NeuronServiceImpl
impl !RefUnwindSafe for NeuronServiceImpl
impl Send for NeuronServiceImpl
impl Sync for NeuronServiceImpl
impl Unpin for NeuronServiceImpl
impl !UnwindSafe for NeuronServiceImpl
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