Struct anthill_service_system::services::BackgroundService
source · [−]pub struct BackgroundService<TService> where
TService: IBackgroundService + Constructor, {
pub service: Arc<RwLock<TService>>,
/* private fields */
}Fields
service: Arc<RwLock<TService>>Trait Implementations
sourceimpl<TService> Constructor for BackgroundService<TService> where
TService: IBackgroundService + Constructor,
impl<TService> Constructor for BackgroundService<TService> where
TService: IBackgroundService + Constructor,
fn ctor<'async_trait>(
ctx: DependencyContext
) -> Pin<Box<dyn Future<Output = BuildDependencyResult<Self>> + Send + Sync + 'async_trait>> where
Self: 'async_trait,
sourceimpl<TService> IBaseService for BackgroundService<TService> where
TService: IBackgroundService + Constructor,
impl<TService> IBaseService for BackgroundService<TService> where
TService: IBackgroundService + Constructor,
fn on_start<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + Send + Sync + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn on_stop<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + Send + Sync + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_type_info(&self) -> TypeInfo
Auto Trait Implementations
impl<TService> !RefUnwindSafe for BackgroundService<TService>
impl<TService> Send for BackgroundService<TService>
impl<TService> Sync for BackgroundService<TService>
impl<TService> Unpin for BackgroundService<TService>
impl<TService> !UnwindSafe for BackgroundService<TService>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more