Struct bootstrap::utils::exec::CommandOutput
source · pub struct CommandOutput(Output);Expand description
Represents the output of an executed process.
Tuple Fields§
§0: OutputImplementations§
source§impl CommandOutput
impl CommandOutput
pub fn is_success(&self) -> bool
pub fn is_failure(&self) -> bool
pub fn status(&self) -> ExitStatus
pub fn stdout(&self) -> String
pub fn stderr(&self) -> String
Trait Implementations§
source§impl Default for CommandOutput
impl Default for CommandOutput
source§impl From<ExitStatus> for CommandOutput
impl From<ExitStatus> for CommandOutput
source§fn from(status: ExitStatus) -> Self
fn from(status: ExitStatus) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandOutput
impl RefUnwindSafe for CommandOutput
impl Send for CommandOutput
impl Sync for CommandOutput
impl Unpin for CommandOutput
impl UnwindSafe for CommandOutput
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
§impl<T> Pointable for T
impl<T> Pointable for T
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: 56 bytes