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
sourceimpl Invocation
impl Invocation
sourcepub fn stdout(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn stdout(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
The data that the process wrote to stdout.
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(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn stderr(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
The data that the process wrote to stderr.
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
sourceimpl Debug for Invocation
impl Debug for Invocation
sourceimpl<'de> Deserialize<'de> for Invocation
impl<'de> Deserialize<'de> for Invocation
sourcefn 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
sourceimpl PartialEq<Invocation> for Invocation
impl PartialEq<Invocation> for Invocation
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Invocation) -> bool
fn ne(&self, other: &Invocation) -> bool
This method tests for !=
.
sourceimpl Serialize for Invocation
impl Serialize for Invocation
impl Eq for Invocation
impl StructuralEq for Invocation
impl StructuralPartialEq for Invocation
Auto Trait Implementations
impl RefUnwindSafe for Invocation
impl Send for Invocation
impl Sync for Invocation
impl Unpin for Invocation
impl UnwindSafe for Invocation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more