Trait capitan_lib::services::prelude::SharedR [−][src]
pub trait SharedR<T: SharedService> { #[must_use] fn spawn_service<'life0, 'async_trait>(
&'life0 self,
service: T,
id: usize
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn get_service<'life0, 'async_trait>(
&'life0 self,
id: usize
) -> Pin<Box<dyn Future<Output = Option<Weak<T>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; }
Required methods
#[must_use]fn spawn_service<'life0, 'async_trait>(
&'life0 self,
service: T,
id: usize
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn spawn_service<'life0, 'async_trait>(&'life0 self,
service: T,
id: usize
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_service<'life0, 'async_trait>(
&'life0 self,
id: usize
) -> Pin<Box<dyn Future<Output = Option<Weak<T>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_service<'life0, 'async_trait>(&'life0 self,
id: usize
) -> Pin<Box<dyn Future<Output = Option<Weak<T>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Implementors
impl<T: SharedService + Send + Sync> SharedReactorTrait<T> for SharedReactor<T>
[src]
fn spawn_service<'life0, 'async_trait>(
&'life0 self,
service: T,
id: usize
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
service: T,
id: usize
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_service<'life0, 'async_trait>(
&'life0 self,
id: usize
) -> Pin<Box<dyn Future<Output = Option<Weak<T>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: usize
) -> Pin<Box<dyn Future<Output = Option<Weak<T>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,