pub struct OutputGuard { /* private fields */ }Expand description
Per-run accounting of agent output (see the module docs).
Implementations§
Source§impl OutputGuard
impl OutputGuard
Sourcepub fn new(limits: OutputLimits) -> Self
pub fn new(limits: OutputLimits) -> Self
A guard for one run.
Sourcepub fn result_bytes(&self) -> usize
pub fn result_bytes(&self) -> usize
Result bytes admitted so far.
Sourcepub fn admit(&mut self, output: ContainerOutput) -> Admission
pub fn admit(&mut self, output: ContainerOutput) -> Admission
Cap one frame, or decide that the run must be aborted.
Trait Implementations§
Source§impl Clone for OutputGuard
impl Clone for OutputGuard
Auto Trait Implementations§
impl Freeze for OutputGuard
impl RefUnwindSafe for OutputGuard
impl Send for OutputGuard
impl Sync for OutputGuard
impl Unpin for OutputGuard
impl UnsafeUnpin for OutputGuard
impl UnwindSafe for OutputGuard
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