Struct cargo_tarpaulin::statemachine::linux::LinuxData
source · pub struct LinuxData<'a> { /* private fields */ }
Expand description
Handle to linux process state
Implementations§
Trait Implementations§
source§impl<'a> StateData for LinuxData<'a>
impl<'a> StateData for LinuxData<'a>
source§fn start(&mut self) -> Result<Option<TestState>, RunError>
fn start(&mut self) -> Result<Option<TestState>, RunError>
Starts the tracing. Returns None while waiting for
start. Statemachine then checks timeout
source§fn init(&mut self) -> Result<TestState, RunError>
fn init(&mut self) -> Result<TestState, RunError>
Initialises test for tracing returns next state
source§fn last_wait_attempt(&mut self) -> Result<Option<TestState>, RunError>
fn last_wait_attempt(&mut self) -> Result<Option<TestState>, RunError>
This is here for the times when we’re about to mark the attempted coverage collection as a
failure i.e. timeout, but there’s an alternative to that which can see if we’re actually in
a “finished” state but are still waiting on resource cleanup so we don’t lose the results.
Auto Trait Implementations§
impl<'a> Freeze for LinuxData<'a>
impl<'a> !RefUnwindSafe for LinuxData<'a>
impl<'a> !Send for LinuxData<'a>
impl<'a> !Sync for LinuxData<'a>
impl<'a> Unpin for LinuxData<'a>
impl<'a> !UnwindSafe for LinuxData<'a>
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