pub struct DiagCtx(Arc<Mutex<DiagCtxInner>>);
Expand description
Collects diagnostics from all tidy steps, and contains shared information that determines how should message and logs be presented.
Since checks are executed in parallel, the context is internally synchronized, to avoid all checks to lock it explicitly.
Tuple Fields§
§0: Arc<Mutex<DiagCtxInner>>
Implementations§
Source§impl DiagCtx
impl DiagCtx
pub fn new(root_path: &Path, verbose: bool) -> Self
pub fn start_check<Id: Into<CheckId>>(&self, id: Id) -> RunningCheck
pub fn into_failed_checks(self) -> Vec<FinishedCheck>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiagCtx
impl RefUnwindSafe for DiagCtx
impl Send for DiagCtx
impl Sync for DiagCtx
impl Unpin for DiagCtx
impl UnwindSafe for DiagCtx
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,
§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: 8 bytes