pub struct TaskContext {
pub task_root: Arc<TaskRoot>,
pub execution_stack: ExecutionStack,
pub multi: Arc<MultiProgress>,
pub env_vars: HashMap<String, String>,
pub ignore_errors: bool,
pub verbose: bool,
pub is_nested: bool,
}Fieldsยง
ยงtask_root: Arc<TaskRoot>ยงexecution_stack: ExecutionStackยงmulti: Arc<MultiProgress>ยงenv_vars: HashMap<String, String>ยงignore_errors: boolยงverbose: boolยงis_nested: boolImplementationsยง
Sourceยงimpl TaskContext
impl TaskContext
pub fn new(task_root: Arc<TaskRoot>, execution_stack: ExecutionStack) -> Self
pub fn from_context(context: &TaskContext) -> Self
pub fn from_context_with_args( context: &TaskContext, ignore_errors: bool, verbose: bool, ) -> Self
pub fn extend_env_vars<I>(&mut self, iter: I)
pub fn set_ignore_errors(&mut self, ignore_errors: bool)
pub fn set_verbose(&mut self, verbose: bool)
Auto Trait Implementationsยง
impl Freeze for TaskContext
impl RefUnwindSafe for TaskContext
impl Send for TaskContext
impl Sync for TaskContext
impl Unpin for TaskContext
impl UnwindSafe for TaskContext
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> 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