pub struct CheckCommand<'a> { /* private fields */ }Expand description
check: the summary, then a non-zero exit if any ceiling is breached.
A ceiling given on the command line wins over the same ceiling in the config file, and one set in neither place cannot be breached.
Implementations§
Source§impl<'a> CheckCommand<'a>
impl<'a> CheckCommand<'a>
pub const fn new( config: &'a Config, result: &'a AnalysisResult, reporter: &'a dyn Reporter, thresholds: &'a CheckThresholds, ) -> Self
Sourcepub fn run(&self, writer: &mut impl Write) -> CliResult
pub fn run(&self, writer: &mut impl Write) -> CliResult
Report, then measure against every ceiling.
Every breach is reported, not just the first, so one run tells the whole story.
§Errors
Returns CliError::CheckFailed if any ceiling was breached, and
CliError::Io if the writer fails.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CheckCommand<'a>
impl<'a> !Send for CheckCommand<'a>
impl<'a> !Sync for CheckCommand<'a>
impl<'a> !UnwindSafe for CheckCommand<'a>
impl<'a> Freeze for CheckCommand<'a>
impl<'a> Unpin for CheckCommand<'a>
impl<'a> UnsafeUnpin for CheckCommand<'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