pub struct TaskHandle<T>{ /* private fields */ }
Implementations§
Source§impl<T> TaskHandle<T>
impl<T> TaskHandle<T>
pub fn configure_with<F>(
&mut self,
config: F,
) -> Result<(), PayloadError<ProjectError>>where
F: FnOnce(&mut Executable<T>, &Project) -> Result<(), PayloadError<ProjectError>> + Send + 'static,
pub fn provides<F, R>(&self, func: F) -> TaskProvider<T, R, F>
Trait Implementations§
Source§impl<T> Buildable for TaskHandle<T>
impl<T> Buildable for TaskHandle<T>
Source§fn get_dependencies(
&self,
project: &Project,
) -> Result<HashSet<TaskId>, PayloadError<ProjectError>>
fn get_dependencies( &self, project: &Project, ) -> Result<HashSet<TaskId>, PayloadError<ProjectError>>
Gets the dependencies required to build this task
Source§impl<T> BuildableTask for TaskHandle<T>
impl<T> BuildableTask for TaskHandle<T>
Source§fn ordering(&self) -> Vec<TaskOrdering>
fn ordering(&self) -> Vec<TaskOrdering>
Gets the total ordering associated with the task. This includes all types of ordering,
including those that aren’t strict dependencies. Read more
Source§fn built_by(&self) -> BuiltByContainer
fn built_by(&self) -> BuiltByContainer
Gets the tasks that this task depends on
Source§impl<T> Clone for TaskHandle<T>
impl<T> Clone for TaskHandle<T>
Source§fn clone(&self) -> TaskHandle<T>
fn clone(&self) -> TaskHandle<T>
Returns a copy 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 moreSource§impl<T> Debug for TaskHandle<T>
impl<T> Debug for TaskHandle<T>
Source§impl<AT> Dependency for TaskHandle<AT>where
AT: ArtifactTask + Send + 'static,
impl<AT> Dependency for TaskHandle<AT>where
AT: ArtifactTask + Send + 'static,
Source§fn dep_type(&self) -> DependencyType
fn dep_type(&self) -> DependencyType
The type of the dependency
Source§fn try_resolve(
&self,
_: &dyn Registry,
_: &Path,
) -> Result<ResolvedDependency, AcquisitionError>
fn try_resolve( &self, _: &dyn Registry, _: &Path, ) -> Result<ResolvedDependency, AcquisitionError>
Try to resolve a dependency in a registry. The
cache_path
is somewhere to write files into
if necessary.Source§impl<T> ExecutableTask for TaskHandle<T>
impl<T> ExecutableTask for TaskHandle<T>
Source§fn options_declarations(&self) -> Option<OptionDeclarations>
fn options_declarations(&self) -> Option<OptionDeclarations>
Get the options declaration for this task
Source§fn try_set_from_decoder(
&mut self,
decoder: &OptionsDecoder<'_>,
) -> Result<(), PayloadError<ProjectError>>
fn try_set_from_decoder( &mut self, decoder: &OptionsDecoder<'_>, ) -> Result<(), PayloadError<ProjectError>>
Try to set values from a decoder
Source§fn execute(
&mut self,
project: &Project,
) -> Result<(), PayloadError<BuildException>>
fn execute( &mut self, project: &Project, ) -> Result<(), PayloadError<BuildException>>
Executes the task, with a given project
Source§fn task_up_to_date(&self) -> bool
fn task_up_to_date(&self) -> bool
Check if this task marked itself as up to date
Source§fn description(&self) -> String
fn description(&self) -> String
Gets the description of the task
Source§impl<T> From<TaskHandle<T>> for FileSetwhere
T: ArtifactTask,
impl<T> From<TaskHandle<T>> for FileSetwhere
T: ArtifactTask,
Source§fn from(t: TaskHandle<T>) -> FileSet
fn from(t: TaskHandle<T>) -> FileSet
Converts to this type from the input type.
Source§impl<T> HasTaskId for TaskHandle<T>
impl<T> HasTaskId for TaskHandle<T>
Source§impl<A> IntoArtifact for &TaskHandle<A>where
A: ArtifactTask,
impl<A> IntoArtifact for &TaskHandle<A>where
A: ArtifactTask,
type IntoArtifact = ConfigurableArtifact
Source§fn into_artifact(self) -> <&TaskHandle<A> as IntoArtifact>::IntoArtifact
fn into_artifact(self) -> <&TaskHandle<A> as IntoArtifact>::IntoArtifact
Get an artifact from some type
Source§impl<A> IntoArtifact for TaskHandle<A>where
A: ArtifactTask,
impl<A> IntoArtifact for TaskHandle<A>where
A: ArtifactTask,
type IntoArtifact = ConfigurableArtifact
Source§fn into_artifact(self) -> <TaskHandle<A> as IntoArtifact>::IntoArtifact
fn into_artifact(self) -> <TaskHandle<A> as IntoArtifact>::IntoArtifact
Get an artifact from some type
Source§impl<T> Provider<PathBuf> for TaskHandle<T>where
T: SinglePathOutputTask,
impl<T> Provider<PathBuf> for TaskHandle<T>where
T: SinglePathOutputTask,
Source§fn missing_message(&self) -> String
fn missing_message(&self) -> String
The missing message for this provider
Source§fn fallible_get(&self) -> Result<T, ProviderError>
fn fallible_get(&self) -> Result<T, ProviderError>
Tries to get a value from this provider, returning an error if not available. Read more
Source§impl<T> ResolveExecutable for TaskHandle<T>
impl<T> ResolveExecutable for TaskHandle<T>
fn get_executable( &mut self, project: &SharedProject, ) -> Result<Box<dyn FullTask>, PayloadError<ProjectError>>
Source§impl<T> ResolveInnerTask for TaskHandle<T>
impl<T> ResolveInnerTask for TaskHandle<T>
fn resolve_task( &mut self, project: &SharedProject, ) -> Result<(), PayloadError<ProjectError>>
Auto Trait Implementations§
impl<T> Freeze for TaskHandle<T>
impl<T> RefUnwindSafe for TaskHandle<T>
impl<T> Send for TaskHandle<T>
impl<T> Sync for TaskHandle<T>
impl<T> Unpin for TaskHandle<T>
impl<T> UnwindSafe for TaskHandle<T>
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<D> IntoDependency for Dwhere
D: Dependency,
impl<D> IntoDependency for Dwhere
D: Dependency,
type IntoDep = D
Source§fn into_dependency(self) -> <D as IntoDependency>::IntoDep
fn into_dependency(self) -> <D as IntoDependency>::IntoDep
Turn this type into a dependency
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 moreSource§impl<P, T> IntoProvider<T> for P
impl<P, T> IntoProvider<T> for P
type Provider = P
fn into_provider(self) -> <P as IntoProvider<T>>::Provider
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<P, T> ProviderExt<T> for P
impl<P, T> ProviderExt<T> for P
Source§fn map<R, F>(self, transform: F) -> Map<T, R, F, Self>
fn map<R, F>(self, transform: F) -> Map<T, R, F, Self>
Creates a provider that can map the output of one provider into some other value. Read more
Source§fn flat_map<R, P, F>(self, transform: F) -> FlatMap<T, R, Self, P, F>
fn flat_map<R, P, F>(self, transform: F) -> FlatMap<T, R, Self, P, F>
Creates a provider that can map the output of one provider with type
T
into some other value that’s
also a provider of type R
. The created provider is a provider of type R
Read moreSource§fn flatten<B>(self) -> FlatMap<T, B, Self, T, fn(T) -> T>
fn flatten<B>(self) -> FlatMap<T, B, Self, T, fn(T) -> T>
Flattens a provider that provides another provider