pub struct CargoProcessHandle {Show 18 fields
pub child: Child,
pub result: CargoProcessResult,
pub pid: u32,
pub requested_exit: bool,
pub stdout_handle: JoinHandle<()>,
pub stderr_handle: JoinHandle<()>,
pub start_time: SystemTime,
pub stats: Arc<Mutex<CargoStats>>,
pub stdout_dispatcher: Option<Arc<EventDispatcher>>,
pub stderr_dispatcher: Option<Arc<EventDispatcher>>,
pub progress_dispatcher: Option<Arc<EventDispatcher>>,
pub stage_dispatcher: Option<Arc<EventDispatcher>>,
pub estimate_bytes: Option<usize>,
pub build_progress_counter: Arc<AtomicUsize>,
pub runtime_progress_counter: Arc<AtomicUsize>,
pub terminal_error_flag: Arc<Mutex<TerminalError>>,
pub diagnostics: Arc<Mutex<Vec<CargoDiagnostic>>>,
pub is_filter: bool,
}Expand description
CargoProcessHandle holds the cargo process and related state.
Fields§
§child: Child§result: CargoProcessResult§pid: u32§requested_exit: bool§stdout_handle: JoinHandle<()>§stderr_handle: JoinHandle<()>§start_time: SystemTime§stats: Arc<Mutex<CargoStats>>§stdout_dispatcher: Option<Arc<EventDispatcher>>§stderr_dispatcher: Option<Arc<EventDispatcher>>§progress_dispatcher: Option<Arc<EventDispatcher>>§stage_dispatcher: Option<Arc<EventDispatcher>>§estimate_bytes: Option<usize>§build_progress_counter: Arc<AtomicUsize>§runtime_progress_counter: Arc<AtomicUsize>§terminal_error_flag: Arc<Mutex<TerminalError>>§diagnostics: Arc<Mutex<Vec<CargoDiagnostic>>>§is_filter: boolImplementations§
Source§impl CargoProcessHandle
impl CargoProcessHandle
pub fn print_results(result: &CargoProcessResult)
pub fn pid(&self) -> u32
Sourcepub fn format_status(&self, process: Option<&Process>) -> String
pub fn format_status(&self, process: Option<&Process>) -> String
Returns a formatted status string.
If system is provided, CPU/memory and runtime info is displayed on the right.
Otherwise, only the start time is shown.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CargoProcessHandle
impl !RefUnwindSafe for CargoProcessHandle
impl Send for CargoProcessHandle
impl Sync for CargoProcessHandle
impl Unpin for CargoProcessHandle
impl !UnwindSafe for CargoProcessHandle
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> 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