[][src]Struct aprun::manager::ServiceManager

pub struct ServiceManager {
    pub service_tasks: HashMap<String, Box<dyn ServiceTask + Send>>,
}

Manager handle ServiceTasks

Fields

service_tasks: HashMap<String, Box<dyn ServiceTask + Send>>

Implementations

impl ServiceManager[src]

pub fn add_service_task<T: Into<String>>(
    &mut self,
    service_name: T,
    service_task: Box<dyn ServiceTask + Send>
) -> Result<(), Box<dyn Error>>
[src]

pub async fn async_parallel_check<'_>(
    &'_ mut self
) -> Result<(), Box<dyn Error>>
[src]

Will perform service_task in parallel

  1. Creates `Vec::new with futures to run.
  2. Executes futures in parallel ( finishes when the last future finishes )

Trait Implementations

impl Default for ServiceManager[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.