pub struct TaskExecutor { /* private fields */ }Implementations§
Source§impl TaskExecutor
impl TaskExecutor
pub fn new( packages_dir: PathBuf, graph: DependencyGraph, command_validator: CommandValidator, task_cache: Option<TaskCache>, remote_cache: Option<Arc<RemoteCache>>, ) -> Self
pub fn build_task_dependency_order( &self, package: &Package, task_name: &str, ) -> Result<Vec<String>>
pub fn execute_task_with_deps( &self, package: &Package, task_name: &str, ) -> Result<Vec<TaskResult>>
pub fn execute_task_internal( &self, package: &Package, task_name: &str, ) -> Result<TaskResult>
Sourcepub fn check_remote_cache(
&self,
remote_cache: &RemoteCache,
package: &Package,
task_name: &str,
command: &str,
package_path: &Path,
) -> Result<Option<TaskResult>>
pub fn check_remote_cache( &self, remote_cache: &RemoteCache, package: &Package, task_name: &str, command: &str, package_path: &Path, ) -> Result<Option<TaskResult>>
Checks remote cache for a task result.
Returns Ok(Some(result)) if found, Ok(None) if not found, or Err on error.
pub fn execute_task( &self, package: &Package, task_name: &str, ) -> Result<TaskResult>
Auto Trait Implementations§
impl Freeze for TaskExecutor
impl !RefUnwindSafe for TaskExecutor
impl Send for TaskExecutor
impl Sync for TaskExecutor
impl Unpin for TaskExecutor
impl !UnwindSafe for TaskExecutor
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> 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<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