pub enum Recorded<'a> {
NoTest,
Unrunnable,
NotRun,
Ran(&'a Execution),
}Expand description
What the ledger holds for one route’s test, before any comparison.
use majordomus_cli::evidence::freshness::Recorded;
// a claim that names no test is a different fact from one whose test never ran
assert!(!matches!(Recorded::NoTest, Recorded::NotRun));Variants§
NoTest
The route names no test.
Unrunnable
The route names a path no runner drives.
NotRun
A runner owns the test, and the ledger holds no execution of it.
Ran(&'a Execution)
The ledger’s execution of the test.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Recorded<'a>
impl<'a> RefUnwindSafe for Recorded<'a>
impl<'a> Send for Recorded<'a>
impl<'a> Sync for Recorded<'a>
impl<'a> Unpin for Recorded<'a>
impl<'a> UnsafeUnpin for Recorded<'a>
impl<'a> UnwindSafe for Recorded<'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