pub struct TaskOrdering { /* private fields */ }Expand description
Represents some task ordering, describing a temporal constraint between
the execution of some task and a Buildable.
The exact constraint is determined by the TaskOrderingKind used
by the constraint. The DependsOn and FinalizedBy orderings put
those tasks on the critical path, while all other kinds just inform the
task execution plan general constraints for how tasks should be ran if they’re
both already on the critical path.
Implementations§
Source§impl TaskOrdering
impl TaskOrdering
Sourcepub fn depends_on<B: IntoBuildable>(buildable: B) -> Selfwhere
B::Buildable: 'static,
pub fn depends_on<B: IntoBuildable>(buildable: B) -> Selfwhere
B::Buildable: 'static,
Create a depends_on ordering
pub fn buildable(&self) -> &Arc<dyn Buildable>
pub fn ordering_kind(&self) -> &TaskOrderingKind
Trait Implementations§
Source§impl Buildable for TaskOrdering
impl Buildable for TaskOrdering
Source§fn get_dependencies(&self, project: &Project) -> ProjectResult<HashSet<TaskId>>
fn get_dependencies(&self, project: &Project) -> ProjectResult<HashSet<TaskId>>
Gets the dependencies required to build this task
Source§impl Clone for TaskOrdering
impl Clone for TaskOrdering
Source§fn clone(&self) -> TaskOrdering
fn clone(&self) -> TaskOrdering
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TaskOrdering
impl !RefUnwindSafe for TaskOrdering
impl Send for TaskOrdering
impl Sync for TaskOrdering
impl Unpin for TaskOrdering
impl !UnwindSafe for TaskOrdering
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<B> GetBuildable for B
impl<B> GetBuildable for B
Source§fn as_buildable(&self) -> BuildableObject
fn as_buildable(&self) -> BuildableObject
Returns a dependency which contains the tasks which build this object.
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<B> IntoBuildable for Bwhere
B: Buildable,
impl<B> IntoBuildable for Bwhere
B: Buildable,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more