pub enum OutputLimit {
Terminate(usize),
Truncate(usize),
}Expand description
Retention and overflow behavior for one output stream.
Variants§
Terminate(usize)
Retain at most this many bytes; excess output fails and cleans up the child.
Truncate(usize)
Retain this prefix, drain the rest, and report every byte to an observer. Truncation is recorded in evidence, without failing the command.
Implementations§
Source§impl OutputLimit
impl OutputLimit
Sourcepub const fn retained_bytes(self) -> usize
pub const fn retained_bytes(self) -> usize
Maximum retained bytes, independently of overflow behavior.
Trait Implementations§
Source§impl Clone for OutputLimit
impl Clone for OutputLimit
impl Copy for OutputLimit
Source§impl Debug for OutputLimit
impl Debug for OutputLimit
impl Eq for OutputLimit
Source§impl PartialEq for OutputLimit
impl PartialEq for OutputLimit
impl StructuralPartialEq for OutputLimit
Auto Trait Implementations§
impl Freeze for OutputLimit
impl RefUnwindSafe for OutputLimit
impl Send for OutputLimit
impl Sync for OutputLimit
impl Unpin for OutputLimit
impl UnsafeUnpin for OutputLimit
impl UnwindSafe for OutputLimit
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