pub struct Captured;Expand description
A handle on the fake host: install it, run the plugin, assert on the lines.
Implementations§
Source§impl Captured
impl Captured
Sourcepub fn take(&self) -> Vec<String>
pub fn take(&self) -> Vec<String>
Everything the plugin wrote since the handle was created, oldest first.
Draining by taking it: a test that asserts twice does not see the first assertion’s lines again.
Sourcepub fn take_levels(&self) -> Vec<(u32, String)>
pub fn take_levels(&self) -> Vec<(u32, String)>
The same, with the contract’s level numbers.
Auto Trait Implementations§
impl Freeze for Captured
impl RefUnwindSafe for Captured
impl Send for Captured
impl Sync for Captured
impl Unpin for Captured
impl UnsafeUnpin for Captured
impl UnwindSafe for Captured
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