pub struct Multi {
pub jobs: Vec<Arc<Single>>,
pub dimens: Dimensions,
/* private fields */
}Expand description
Represents a job which consists of multiple sub jobs. All of these jobs must be performed or none of them. Order can be controlled via specific dimension value.
Fields
jobs: Vec<Arc<Single>>A list of jobs which must be performed.
dimens: DimensionsDimensions which contains extra work requirements.
Implementations
sourceimpl Multi
impl Multi
sourcepub fn new(jobs: Vec<Arc<Single>>, dimens: Dimensions) -> Self
pub fn new(jobs: Vec<Arc<Single>>, dimens: Dimensions) -> Self
Creates a new multi job from given ‘dimens’ and jobs assuming that jobs has to be
inserted in order they specified.
sourcepub fn new_with_permutator(
jobs: Vec<Arc<Single>>,
dimens: Dimensions,
permutator: Box<dyn JobPermutation + Send + Sync>
) -> Self
pub fn new_with_permutator(
jobs: Vec<Arc<Single>>,
dimens: Dimensions,
permutator: Box<dyn JobPermutation + Send + Sync>
) -> Self
Creates a new multi job from given ‘dimens’ and jobs using permutator to control insertion order.
Auto Trait Implementations
impl !RefUnwindSafe for Multi
impl Send for Multi
impl Sync for Multi
impl Unpin for Multi
impl !UnwindSafe for Multi
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