[−][src]Struct aprun::manager::ServiceManager
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]
&mut self,
service_name: T,
service_task: Box<dyn ServiceTask + Send>
) -> Result<(), Box<dyn Error>>
pub async fn async_parallel_check<'_>(
&'_ mut self
) -> Result<(), Box<dyn Error>>
[src]
&'_ mut self
) -> Result<(), Box<dyn Error>>
Will perform service_task in parallel
- Creates `Vec::new with futures to run.
- Executes futures in parallel ( finishes when the last future finishes )
Trait Implementations
impl Default for ServiceManager
[src]
fn default() -> ServiceManager
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ServiceManager
impl Send for ServiceManager
impl !Sync for ServiceManager
impl Unpin for ServiceManager
impl !UnwindSafe for ServiceManager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,