pub enum Gate {
Pass,
Fail,
NotRun,
}Expand description
The gate verdict, as a value rather than an exit code.
NotRun is a third state on purpose. A caller that only tests
violations.is_empty() would read a check that never ran as a clean
repository; making the absence of a verdict its own value means that caller
has to notice.
Variants§
Pass
The check ran and found no drift (roteiro check would exit 0).
Fail
The check ran and found drift (roteiro check would exit non-zero).
NotRun
The check did not run. report is absent; see not_run_reason.
Trait Implementations§
impl Copy for Gate
impl Eq for Gate
impl StructuralPartialEq for Gate
Auto Trait Implementations§
impl Freeze for Gate
impl RefUnwindSafe for Gate
impl Send for Gate
impl Sync for Gate
impl Unpin for Gate
impl UnsafeUnpin for Gate
impl UnwindSafe for Gate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.