pub struct CaptureHandler { /* private fields */ }Expand description
Handler that accumulates all serial and stderr bytes for post-run inspection.
§Example
use cargo_image_runner::runner::io::CaptureHandler;
let handler = CaptureHandler::new();
// Pass to builder via .io_handler(handler)
// After run, CapturedIo will contain all serial/stderr output.Implementations§
Trait Implementations§
Source§impl Debug for CaptureHandler
impl Debug for CaptureHandler
Source§impl Default for CaptureHandler
impl Default for CaptureHandler
Source§fn default() -> CaptureHandler
fn default() -> CaptureHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CaptureHandler
impl RefUnwindSafe for CaptureHandler
impl Send for CaptureHandler
impl Sync for CaptureHandler
impl Unpin for CaptureHandler
impl UnsafeUnpin for CaptureHandler
impl UnwindSafe for CaptureHandler
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