pub struct StreamPolicy {
pub stderr_limit: u64,
pub stderr_tail: u64,
pub deadline: Duration,
}Expand description
Bounds for one streamed run. Stdout has no retention limit by construction: the consumer, not the pipe, decides what to keep.
Fields§
§stderr_limit: u64Retained head of stderr.
stderr_tail: u64Additional bytes retained from the end of stderr, after any dropped middle. Zero disables the tail.
deadline: DurationWall-clock budget for the whole exchange.
Trait Implementations§
Source§impl Clone for StreamPolicy
impl Clone for StreamPolicy
Source§fn clone(&self) -> StreamPolicy
fn clone(&self) -> StreamPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamPolicy
impl RefUnwindSafe for StreamPolicy
impl Send for StreamPolicy
impl Sync for StreamPolicy
impl Unpin for StreamPolicy
impl UnsafeUnpin for StreamPolicy
impl UnwindSafe for StreamPolicy
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