pub struct Invocation { /* private fields */ }
Expand description
The outputs of a cached invocation of a CommandDesc
, akin to std::process::Output
.
Implementations§
Source§impl Invocation
impl Invocation
Sourcepub fn stdout_utf8(&self) -> &str
pub fn stdout_utf8(&self) -> &str
Helper to view stdout as a UTF-8 string. Use from_utf8
directly if
you need to handle output that may not be UTF-8.
Sourcepub fn stderr_utf8(&self) -> &str
pub fn stderr_utf8(&self) -> &str
Helper to view stderr as a UTF-8 string. Use from_utf8
directly if
you need to handle output that may not be UTF-8.
Sourcepub fn exit_code(&self) -> i32
pub fn exit_code(&self) -> i32
The exit code of the program, or 126 if the program terminated without an exit status.
See ExitStatus::code()
. This is subject to change to
better support other termination states.
Trait Implementations§
Source§impl Debug for Invocation
impl Debug for Invocation
Source§impl<'de> Deserialize<'de> for Invocation
impl<'de> Deserialize<'de> for Invocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Invocation
impl PartialEq for Invocation
Source§impl Serialize for Invocation
impl Serialize for Invocation
impl Eq for Invocation
impl StructuralPartialEq for Invocation
Auto Trait Implementations§
impl Freeze for Invocation
impl RefUnwindSafe for Invocation
impl Send for Invocation
impl Sync for Invocation
impl Unpin for Invocation
impl UnwindSafe for Invocation
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