pub struct ExecutionContext {
dry_run: DryRun,
verbose: u8,
pub fail_fast: bool,
delayed_failures: Arc<Mutex<Vec<String>>>,
command_cache: Arc<CommandCache>,
}
Fields§
§dry_run: DryRun
§verbose: u8
§fail_fast: bool
§delayed_failures: Arc<Mutex<Vec<String>>>
§command_cache: Arc<CommandCache>
Implementations§
Source§impl ExecutionContext
impl ExecutionContext
pub fn new() -> Self
pub fn dry_run(&self) -> bool
pub fn get_dry_run(&self) -> &DryRun
pub fn verbose(&self, f: impl Fn())
pub fn is_verbose(&self) -> bool
pub fn fail_fast(&self) -> bool
pub fn set_dry_run(&mut self, value: DryRun)
pub fn set_verbose(&mut self, value: u8)
pub fn set_fail_fast(&mut self, value: bool)
pub fn add_to_delay_failure(&self, message: String)
pub fn report_failures_and_exit(&self)
Sourcepub fn start<'a>(
&self,
command: &'a mut BootstrapCommand,
stdout: OutputMode,
stderr: OutputMode,
) -> DeferredCommand<'a>
pub fn start<'a>( &self, command: &'a mut BootstrapCommand, stdout: OutputMode, stderr: OutputMode, ) -> DeferredCommand<'a>
Execute a command and return its output. Note: Ideally, you should use one of the BootstrapCommand::run* functions to execute commands. They internally call this method.
Sourcepub fn run(
&self,
command: &mut BootstrapCommand,
stdout: OutputMode,
stderr: OutputMode,
) -> CommandOutput
pub fn run( &self, command: &mut BootstrapCommand, stdout: OutputMode, stderr: OutputMode, ) -> CommandOutput
Execute a command and return its output. Note: Ideally, you should use one of the BootstrapCommand::run* functions to execute commands. They internally call this method.
fn fail(&self, message: &str, output: CommandOutput) -> !
Trait Implementations§
Source§impl AsRef<ExecutionContext> for Build
impl AsRef<ExecutionContext> for Build
Source§fn as_ref(&self) -> &ExecutionContext
fn as_ref(&self) -> &ExecutionContext
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'a> AsRef<ExecutionContext> for Builder<'a>
impl<'a> AsRef<ExecutionContext> for Builder<'a>
Source§fn as_ref(&self) -> &ExecutionContext
fn as_ref(&self) -> &ExecutionContext
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<ExecutionContext> for Config
impl AsRef<ExecutionContext> for Config
Source§fn as_ref(&self) -> &ExecutionContext
fn as_ref(&self) -> &ExecutionContext
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<ExecutionContext> for ExecutionContext
impl AsRef<ExecutionContext> for ExecutionContext
Source§fn as_ref(&self) -> &ExecutionContext
fn as_ref(&self) -> &ExecutionContext
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ExecutionContext
impl Clone for ExecutionContext
Source§fn clone(&self) -> ExecutionContext
fn clone(&self) -> ExecutionContext
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ExecutionContext
impl Default for ExecutionContext
Source§fn default() -> ExecutionContext
fn default() -> ExecutionContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExecutionContext
impl RefUnwindSafe for ExecutionContext
impl Send for ExecutionContext
impl Sync for ExecutionContext
impl Unpin for ExecutionContext
impl UnwindSafe for ExecutionContext
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,
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes