pub struct Cargo { /* private fields */ }Available on crate features
json and print and process only.Implementations§
Source§impl Cargo
impl Cargo
Sourcepub fn on_diagnostic<F: Fn(bool, &str) + Send + 'static>(self, f: F) -> Self
pub fn on_diagnostic<F: Fn(bool, &str) + Send + 'static>(self, f: F) -> Self
Set a diagnostic hook, used to inspect compiler diagnostics from cargo
The parameters are (is_warning, message). The message is ansi-rendered.
The hook should take care of printing the message
Sourcepub fn configure_spinner<F: FnOnce(ProgressBarBuilder) -> ProgressBarBuilder>(
self,
f: F,
) -> Self
pub fn configure_spinner<F: FnOnce(ProgressBarBuilder) -> ProgressBarBuilder>( self, f: F, ) -> Self
Configure the progress bar that will be spawned
Trait Implementations§
Source§impl ChildOutConfig for Cargo
impl ChildOutConfig for Cargo
type Task = CargoTask
Source§fn configure_stdout(&mut self, command: &mut TokioCommand)
fn configure_stdout(&mut self, command: &mut TokioCommand)
Configure the standard output using this config, called before spawning
Source§fn configure_stderr(&mut self, _: &mut TokioCommand)
fn configure_stderr(&mut self, _: &mut TokioCommand)
Configure the standard error using this config, called before spawning
Auto Trait Implementations§
impl !RefUnwindSafe for Cargo
impl !Sync for Cargo
impl !UnwindSafe for Cargo
impl Freeze for Cargo
impl Send for Cargo
impl Unpin for Cargo
impl UnsafeUnpin for Cargo
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