pub struct BackgroundProcessOutput { /* private fields */ }Expand description
Captured output for one retained background process.
Implementations§
Source§impl BackgroundProcessOutput
impl BackgroundProcessOutput
Sourcepub fn new(
summary: BackgroundProcessSummary,
stdout: impl Into<String>,
stderr: impl Into<String>,
stdout_truncated: bool,
stderr_truncated: bool,
) -> Self
pub fn new( summary: BackgroundProcessSummary, stdout: impl Into<String>, stderr: impl Into<String>, stdout_truncated: bool, stderr_truncated: bool, ) -> Self
Creates a read result from the retained capture.
Sourcepub fn summary(&self) -> &BackgroundProcessSummary
pub fn summary(&self) -> &BackgroundProcessSummary
Returns the process row.
Sourcepub fn stdout(&self) -> &str
pub fn stdout(&self) -> &str
Returns captured stdout since the process started, bounded by the original call.
Sourcepub fn stderr(&self) -> &str
pub fn stderr(&self) -> &str
Returns captured stderr since the process started, bounded by the original call.
Sourcepub const fn stdout_truncated(&self) -> bool
pub const fn stdout_truncated(&self) -> bool
Returns whether stdout capture hit its limit.
Sourcepub const fn stderr_truncated(&self) -> bool
pub const fn stderr_truncated(&self) -> bool
Returns whether stderr capture hit its limit.
Trait Implementations§
Source§impl Clone for BackgroundProcessOutput
impl Clone for BackgroundProcessOutput
Source§impl Debug for BackgroundProcessOutput
impl Debug for BackgroundProcessOutput
impl Eq for BackgroundProcessOutput
Source§impl PartialEq for BackgroundProcessOutput
impl PartialEq for BackgroundProcessOutput
impl StructuralPartialEq for BackgroundProcessOutput
Auto Trait Implementations§
impl Forget for BackgroundProcessOutput
impl Freeze for BackgroundProcessOutput
impl Move for BackgroundProcessOutput
impl RefUnwindSafe for BackgroundProcessOutput
impl Send for BackgroundProcessOutputwhere
RawVecInner: Send,
impl Sync for BackgroundProcessOutputwhere
RawVecInner: Sync,
impl Unpin for BackgroundProcessOutput
impl UnsafeUnpin for BackgroundProcessOutput
impl UnwindSafe for BackgroundProcessOutputwhere
RawVecInner: UnwindSafe,
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,
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.