pub struct ProcessOutputEnvelope<'a> { /* private fields */ }Expand description
Shared fields of a full process result artifact, including lossless captures.
Serialization borrows runner text; deserialization owns it. Unknown fields are ignored for artifact compatibility, not used to make admission decisions.
Implementations§
Source§impl<'a> ProcessOutputEnvelope<'a>
impl<'a> ProcessOutputEnvelope<'a>
Sourcepub fn ok(&self) -> Option<bool>
pub fn ok(&self) -> Option<bool>
Returns recorded success, or None if a historical artifact omitted it.
Sourcepub fn permission_profile_id(&self) -> Option<&str>
pub fn permission_profile_id(&self) -> Option<&str>
Borrows the recorded profile name without requiring it to still exist.
Sourcepub fn permission_rationale(&self) -> Option<&str>
pub fn permission_rationale(&self) -> Option<&str>
Borrows the admission rationale if the artifact includes one.
Sourcepub fn exit_code(&self) -> Option<i64>
pub fn exit_code(&self) -> Option<i64>
Returns a normal exit code from current or historical status encoding.
Sourcepub fn stdout(&self) -> &ProcessOutputStream<'a>
pub fn stdout(&self) -> &ProcessOutputStream<'a>
Borrows captured stdout, empty when omitted in a historical artifact.
Sourcepub fn stderr(&self) -> &ProcessOutputStream<'a>
pub fn stderr(&self) -> &ProcessOutputStream<'a>
Borrows captured stderr, empty when omitted in a historical artifact.
Sourcepub fn into_streams(self) -> (ProcessOutputStream<'a>, ProcessOutputStream<'a>)
pub fn into_streams(self) -> (ProcessOutputStream<'a>, ProcessOutputStream<'a>)
Transfers both captures to a consumer without cloning their text.
Trait Implementations§
Source§impl<'a> Clone for ProcessOutputEnvelope<'a>
impl<'a> Clone for ProcessOutputEnvelope<'a>
Source§impl<'a> Debug for ProcessOutputEnvelope<'a>
impl<'a> Debug for ProcessOutputEnvelope<'a>
Source§impl<'de, 'a> Deserialize<'de> for ProcessOutputEnvelope<'a>
impl<'de, 'a> Deserialize<'de> for ProcessOutputEnvelope<'a>
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
impl<'a> Eq for ProcessOutputEnvelope<'a>
Source§impl<'a> PartialEq for ProcessOutputEnvelope<'a>
impl<'a> PartialEq for ProcessOutputEnvelope<'a>
Source§impl<'a> Serialize for ProcessOutputEnvelope<'a>
impl<'a> Serialize for ProcessOutputEnvelope<'a>
impl<'a> StructuralPartialEq for ProcessOutputEnvelope<'a>
Auto Trait Implementations§
impl<'a> Forget for ProcessOutputEnvelope<'a>
impl<'a> Freeze for ProcessOutputEnvelope<'a>
impl<'a> Move for ProcessOutputEnvelope<'a>
impl<'a> RefUnwindSafe for ProcessOutputEnvelope<'a>where
String: RefUnwindSafe,
impl<'a> Send for ProcessOutputEnvelope<'a>
impl<'a> Sync for ProcessOutputEnvelope<'a>
impl<'a> Unpin for ProcessOutputEnvelope<'a>
impl<'a> UnsafeUnpin for ProcessOutputEnvelope<'a>where
&'a str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl<'a> UnwindSafe for ProcessOutputEnvelope<'a>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.