pub struct CapturedOutput {
pub bytes: Vec<u8>,
pub truncated: bool,
pub total_bytes: u64,
}Expand description
What a capture holds.
Fields§
§bytes: Vec<u8>The first max_bytes bytes of the stream, unmodified.
truncated: boolTrue when the stream held more than max_bytes bytes and the rest was discarded.
total_bytes: u64Every byte the stream produced so far, kept or not.
Trait Implementations§
Source§impl Clone for CapturedOutput
impl Clone for CapturedOutput
Source§impl Debug for CapturedOutput
impl Debug for CapturedOutput
Source§impl Default for CapturedOutput
impl Default for CapturedOutput
impl Eq for CapturedOutput
Source§impl PartialEq for CapturedOutput
impl PartialEq for CapturedOutput
impl StructuralPartialEq for CapturedOutput
Auto Trait Implementations§
impl Freeze for CapturedOutput
impl RefUnwindSafe for CapturedOutput
impl Send for CapturedOutput
impl Sync for CapturedOutput
impl Unpin for CapturedOutput
impl UnsafeUnpin for CapturedOutput
impl UnwindSafe for CapturedOutput
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