Trait capitan_lib::services::IsolatedService [−][src]
pub trait IsolatedService: Any { #[must_use] fn init<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn main<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn repeat<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn catch<'life0, 'async_trait>(
&'life0 mut self,
error: Error
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn abort<'life0, 'async_trait>(
&'life0 mut self,
error: Error
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn to_dyn(self) -> DynamicIsolatedService
where
Self: Sized + Sync + Send, { ... } }
Isolated services are services that can’t be accessed from the outside. they are helpful as root services, services that hold other services.
Required methods
#[must_use]fn init<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn init<'life0, 'async_trait>(&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
only runs once at the start
#[must_use]fn main<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn main<'life0, 'async_trait>(&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
loops
#[must_use]fn repeat<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn repeat<'life0, 'async_trait>(&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
runs after main if main or repeat did not return errors
#[must_use]fn catch<'life0, 'async_trait>(
&'life0 mut self,
error: Error
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn catch<'life0, 'async_trait>(&'life0 mut self,
error: Error
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
runs after main if main returned an error
#[must_use]fn abort<'life0, 'async_trait>(
&'life0 mut self,
error: Error
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn abort<'life0, 'async_trait>(&'life0 mut self,
error: Error
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
run if catch was not successful
Provided methods
Loading content...Implementors
impl IsolatedService for DynamicIsolatedService
[src]
fn init<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn main<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn repeat<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn catch<'life0, 'async_trait>(
&'life0 mut self,
error: Error
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
error: Error
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn abort<'life0, 'async_trait>(
&'life0 mut self,
error: Error
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
error: Error
) -> Pin<Box<dyn Future<Output = Res<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,