pub struct RunningCheck {
id: CheckId,
bad: bool,
ctx: Arc<Mutex<DiagCtxInner>>,
}
Expand description
Represents a single tidy check, identified by its name
, running.
Fields§
§id: CheckId
§bad: bool
§ctx: Arc<Mutex<DiagCtxInner>>
Implementations§
Source§impl RunningCheck
impl RunningCheck
Sourcepub fn new_noop() -> Self
pub fn new_noop() -> Self
Creates a new instance of a running check without going through the diag context. Useful if you want to run some functions from tidy without configuring diagnostics.
Sourcepub fn error<T: Display>(&mut self, msg: T)
pub fn error<T: Display>(&mut self, msg: T)
Immediately output an error and mark the check as failed.
Sourcepub fn verbose_msg<T: Display>(&mut self, msg: T)
pub fn verbose_msg<T: Display>(&mut self, msg: T)
Output a message only if verbose output is enabled.
Sourcepub fn is_verbose_enabled(&self) -> bool
pub fn is_verbose_enabled(&self) -> bool
Is verbose output enabled?
fn mark_as_bad(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunningCheck
impl RefUnwindSafe for RunningCheck
impl Send for RunningCheck
impl Sync for RunningCheck
impl Unpin for RunningCheck
impl UnwindSafe for RunningCheck
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
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes