Struct bkt::Invocation
source · 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<Invocation> for Invocation
impl PartialEq<Invocation> for Invocation
source§fn eq(&self, other: &Invocation) -> bool
fn eq(&self, other: &Invocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.