Struct ns3_parallel::executor::Executor
source · [−]pub struct Executor<T: Default + BuildParam<P>, P: BuildCmd> {
pub configs: HashMap<String, T>,
pub outputs: HashMap<String, Vec<Task<P>>>,
/* private fields */
}Fields
configs: HashMap<String, T>outputs: HashMap<String, Vec<Task<P>>>Implementations
sourceimpl<T: Default + BuildParam<P>, P: BuildCmd> Executor<T, P>
impl<T: Default + BuildParam<P>, P: BuildCmd> Executor<T, P>
pub fn get_config_path(&self) -> &str
pub fn get_ns3_path(&self) -> &str
pub fn get_task_concurrent(&self) -> usize
pub fn get_retry_limit(&self) -> u32
pub fn get_configs(&self) -> &HashMap<String, T>
pub fn get_outputs(&self) -> &HashMap<String, Vec<Task<P>>>
pub async fn execute(&mut self) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl<T, P> RefUnwindSafe for Executor<T, P> where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for Executor<T, P> where
P: Send,
T: Send,
impl<T, P> Sync for Executor<T, P> where
P: Sync,
T: Sync,
impl<T, P> Unpin for Executor<T, P> where
P: Unpin,
T: Unpin,
impl<T, P> UnwindSafe for Executor<T, P> where
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more