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
source§fn clone(&self) -> DefaultExecutor
fn clone(&self) -> DefaultExecutor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Executor for DefaultExecutor
impl Executor for DefaultExecutor
source§fn exec(
&self,
cmd: &ProcessBuilder,
_id: PackageId,
_target: &Target,
_mode: CompileMode,
on_stdout_line: &mut dyn FnMut(&str) -> CargoResult<()>,
on_stderr_line: &mut dyn FnMut(&str) -> CargoResult<()>,
) -> CargoResult<()>
fn exec( &self, cmd: &ProcessBuilder, _id: PackageId, _target: &Target, _mode: CompileMode, on_stdout_line: &mut dyn FnMut(&str) -> CargoResult<()>, on_stderr_line: &mut dyn FnMut(&str) -> CargoResult<()>, ) -> CargoResult<()>
In case of an
Err
, Cargo will not continue with the build process for
this package.source§fn init(&self, _build_runner: &BuildRunner<'_, '_>, _unit: &Unit)
fn init(&self, _build_runner: &BuildRunner<'_, '_>, _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 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.
impl Copy for DefaultExecutor
Auto Trait Implementations§
impl Freeze for DefaultExecutor
impl RefUnwindSafe for DefaultExecutor
impl Send for DefaultExecutor
impl Sync for DefaultExecutor
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
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: 0 bytes