pub struct TaskHandle<T: Task + Send + Sync + Debug + 'static> { /* private fields */ }
Implementations§
Source§impl<T: Task + Send + Sync + Debug + 'static> TaskHandle<T>
impl<T: Task + Send + Sync + Debug + 'static> TaskHandle<T>
pub fn configure_with<F>(&mut self, config: F) -> ProjectResult
pub fn provides<F, R>(&self, func: F) -> TaskProvider<T, R, F>
Trait Implementations§
Source§impl<T: Task + Send + Sync + Debug + 'static> Buildable for TaskHandle<T>
impl<T: Task + Send + Sync + Debug + 'static> Buildable for TaskHandle<T>
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<T: Task + Send + Sync + Debug + 'static> BuildableTask for TaskHandle<T>
impl<T: Task + Send + Sync + Debug + 'static> 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<AT: ArtifactTask + Send + 'static> Dependency for TaskHandle<AT>
impl<AT: ArtifactTask + Send + 'static> Dependency for TaskHandle<AT>
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: Task + Send + Sync + Debug + 'static> ExecutableTask for TaskHandle<T>
impl<T: Task + Send + Sync + Debug + 'static> 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<'_>,
) -> ProjectResult<()>
fn try_set_from_decoder( &mut self, decoder: &OptionsDecoder<'_>, ) -> ProjectResult<()>
Try to set values from a decoder
Source§fn execute(&mut self, project: &Project) -> BuildResult
fn execute(&mut self, project: &Project) -> BuildResult
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: ArtifactTask> From<TaskHandle<T>> for FileSet
impl<T: ArtifactTask> From<TaskHandle<T>> for FileSet
Source§fn from(t: TaskHandle<T>) -> Self
fn from(t: TaskHandle<T>) -> Self
Converts to this type from the input type.
Source§impl<A: ArtifactTask> IntoArtifact for &TaskHandle<A>
impl<A: ArtifactTask> IntoArtifact for &TaskHandle<A>
type IntoArtifact = ConfigurableArtifact
Source§fn into_artifact(self) -> Self::IntoArtifact
fn into_artifact(self) -> Self::IntoArtifact
Get an artifact from some type
Source§impl<A: ArtifactTask> IntoArtifact for TaskHandle<A>
impl<A: ArtifactTask> IntoArtifact for TaskHandle<A>
type IntoArtifact = ConfigurableArtifact
Source§fn into_artifact(self) -> Self::IntoArtifact
fn into_artifact(self) -> Self::IntoArtifact
Get an artifact from some type
Source§impl<T: SinglePathOutputTask> Provider<PathBuf> for TaskHandle<T>
impl<T: SinglePathOutputTask> Provider<PathBuf> for TaskHandle<T>
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: Task + Send + Sync + Debug + 'static> ResolveExecutable for TaskHandle<T>
impl<T: Task + Send + Sync + Debug + 'static> ResolveExecutable for TaskHandle<T>
fn get_executable( &mut self, project: &SharedProject, ) -> ProjectResult<Box<dyn FullTask>>
Source§impl<T: Task + Send + Sync + Debug + 'static> ResolveInnerTask for TaskHandle<T>
impl<T: Task + Send + Sync + Debug + 'static> ResolveInnerTask for TaskHandle<T>
fn resolve_task(&mut self, project: &SharedProject) -> ProjectResult<()>
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 more