pub struct CargoProcessResult {Show 18 fields
pub target_name: String,
pub cmd: String,
pub args: Vec<String>,
pub pid: u32,
pub terminal_error: Option<TerminalError>,
pub exit_status: Option<ExitStatus>,
pub start_time: Option<SystemTime>,
pub build_finished_time: Option<SystemTime>,
pub end_time: Option<SystemTime>,
pub build_elapsed: Option<Duration>,
pub runtime_elapsed: Option<Duration>,
pub elapsed_time: Option<Duration>,
pub stats: CargoStats,
pub build_output_size: usize,
pub runtime_output_size: usize,
pub diagnostics: Vec<CargoDiagnostic>,
pub is_filter: bool,
pub is_could_not_compile: bool,
}Expand description
CargoProcessResult is returned when the cargo process completes.
Fields§
§target_name: String§cmd: String§args: Vec<String>§pid: u32§terminal_error: Option<TerminalError>§exit_status: Option<ExitStatus>§start_time: Option<SystemTime>§build_finished_time: Option<SystemTime>§end_time: Option<SystemTime>§build_elapsed: Option<Duration>§runtime_elapsed: Option<Duration>§elapsed_time: Option<Duration>§stats: CargoStats§build_output_size: usize§runtime_output_size: usize§diagnostics: Vec<CargoDiagnostic>§is_filter: bool§is_could_not_compile: boolImplementations§
Source§impl CargoProcessResult
impl CargoProcessResult
Sourcepub fn print_exact(&self)
pub fn print_exact(&self)
Print every diagnostic in full detail.
Sourcepub fn print_short(&self)
pub fn print_short(&self)
Print warnings first, then errors, one‐line summary.
Sourcepub fn print_compact(&self)
pub fn print_compact(&self)
Print a compact, zero‑padded, numbered list of all diagnostics.
Trait Implementations§
Source§impl Clone for CargoProcessResult
impl Clone for CargoProcessResult
Source§fn clone(&self) -> CargoProcessResult
fn clone(&self) -> CargoProcessResult
Returns a duplicate 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 Debug for CargoProcessResult
impl Debug for CargoProcessResult
Source§impl Default for CargoProcessResult
impl Default for CargoProcessResult
Source§fn default() -> CargoProcessResult
fn default() -> CargoProcessResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CargoProcessResult
impl RefUnwindSafe for CargoProcessResult
impl Send for CargoProcessResult
impl Sync for CargoProcessResult
impl Unpin for CargoProcessResult
impl UnwindSafe for CargoProcessResult
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§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