pub struct CapturedStream {
pub captured: bool,
pub bytes: Vec<u8>,
pub truncated: bool,
pub incomplete: bool,
pub total_bytes: u64,
pub retention: CaptureRetention,
}Expand description
Bounded output captured from one child stream.
Fields§
§captured: boolWhether this stream was configured for capture.
bytes: Vec<u8>Retained bytes according to retention, never larger than the cap.
truncated: boolWhether bytes were omitted from the retained capture.
incomplete: boolWhether capture ended before EOF because the drain grace elapsed.
total_bytes: u64Bytes observed before EOF or forced pipe closure.
retention: CaptureRetentionRetention policy used for this stream.
Implementations§
Source§impl CapturedStream
impl CapturedStream
Sourcepub const fn is_partial(&self) -> bool
pub const fn is_partial(&self) -> bool
True when the bytes cannot be treated as the complete child stream.
Trait Implementations§
Source§impl Clone for CapturedStream
impl Clone for CapturedStream
Source§impl Debug for CapturedStream
impl Debug for CapturedStream
impl Eq for CapturedStream
Source§impl PartialEq for CapturedStream
impl PartialEq for CapturedStream
impl StructuralPartialEq for CapturedStream
Auto Trait Implementations§
impl Freeze for CapturedStream
impl RefUnwindSafe for CapturedStream
impl Send for CapturedStream
impl Sync for CapturedStream
impl Unpin for CapturedStream
impl UnsafeUnpin for CapturedStream
impl UnwindSafe for CapturedStream
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