pub struct DefaultExecutor;Expand description
A DefaultExecutor calls rustc without doing anything else. It is Cargo’s
default behaviour.
Trait Implementations§
Source§impl Clone for DefaultExecutor
impl Clone for DefaultExecutor
impl Copy for DefaultExecutor
Source§impl Executor for DefaultExecutor
impl Executor for DefaultExecutor
fn exec_and_capture_output( &self, cmd: ProcessBuilder, _id: PackageId, _target: &Target, _mode: CompileMode, state: &JobState<'_>, ) -> CargoResult<()>
Source§fn init(&self, _cx: &Context<'_, '_>, _unit: &Unit<'_>)
fn init(&self, _cx: &Context<'_, '_>, _unit: &Unit<'_>)
Called after a rustc process invocation is prepared up-front for a given
unit of work (may still be modified for runtime-known dependencies, when
the work is actually executed).
Source§fn exec(
&self,
cmd: ProcessBuilder,
_id: PackageId,
_target: &Target,
_mode: CompileMode,
) -> CargoResult<()>
fn exec( &self, cmd: ProcessBuilder, _id: PackageId, _target: &Target, _mode: CompileMode, ) -> CargoResult<()>
In case of an
Err, Cargo will not continue with the build process for
this package.fn exec_json( &self, cmd: ProcessBuilder, _id: PackageId, _target: &Target, _mode: CompileMode, handle_stdout: &mut dyn FnMut(&str) -> CargoResult<()>, handle_stderr: &mut dyn FnMut(&str) -> CargoResult<()>, ) -> CargoResult<()>
Source§fn force_rebuild(&self, _unit: &Unit<'_>) -> bool
fn force_rebuild(&self, _unit: &Unit<'_>) -> bool
Queried when queuing each unit of work. If it returns true, then the
unit will always be rebuilt, independent of whether it needs to be.
Auto Trait Implementations§
impl Freeze for DefaultExecutor
impl RefUnwindSafe for DefaultExecutor
impl Send for DefaultExecutor
impl Sync for DefaultExecutor
impl Unpin for DefaultExecutor
impl UnsafeUnpin for DefaultExecutor
impl UnwindSafe for DefaultExecutor
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