Struct anthill_service_system::Application
source · [−]pub struct Application {
pub root_ioc_context: DependencyContext,
pub core_config: Arc<RwLock<ConfigurationSnapshot<CoreConfig, JsonFileConfiguration<CoreConfig>>>>,
}Fields
root_ioc_context: DependencyContextcore_config: Arc<RwLock<ConfigurationSnapshot<CoreConfig, JsonFileConfiguration<CoreConfig>>>>Implementations
sourceimpl Application
impl Application
pub async fn new(
configuration_path: Option<String>
) -> BuildDependencyResult<Self>
pub async fn register_service<TBaseService: IBaseService + Constructor>(
&mut self
) -> AddServiceResult
pub async fn register_startup<TStartup: IStartup + Constructor>(
&mut self
) -> AddStartupResult
pub async fn register_life_time_manager<TLifeTimeManager: ILifeTimeManager + Constructor>(
&mut self
) -> AddLifeTimeManagerResult
pub async fn run(&mut self) -> AppRunResult
Trait Implementations
sourceimpl Constructor for Application
impl Constructor for Application
fn ctor<'async_trait>(
ctx: DependencyContext
) -> Pin<Box<dyn Future<Output = BuildDependencyResult<Self>> + Send + Sync + 'async_trait>> where
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application
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