pub struct Checkup { /* private fields */ }
Expand description
Configuration for an app to be checked for problems.
Implementations§
Source§impl Checkup
impl Checkup
Sourcepub fn new(manifest_path: impl Into<PathBuf>) -> Result<Self>
pub fn new(manifest_path: impl Into<PathBuf>) -> Result<Self>
Return a new checkup for the app manifest at the given path.
Sourcepub fn patient(&self) -> &PatientApp
pub fn patient(&self) -> &PatientApp
Returns the PatientApp
being checked.
Sourcepub fn add_diagnostic<D: Diagnostic + Default + 'static>(&mut self) -> &mut Self
pub fn add_diagnostic<D: Diagnostic + Default + 'static>(&mut self) -> &mut Self
Add a detectable problem to this checkup.
Sourcepub async fn next_diagnosis(&mut self) -> Result<Option<PatientDiagnosis<'_>>>
pub async fn next_diagnosis(&mut self) -> Result<Option<PatientDiagnosis<'_>>>
Returns the next detected problem.
Auto Trait Implementations§
impl Freeze for Checkup
impl !RefUnwindSafe for Checkup
impl !Send for Checkup
impl !Sync for Checkup
impl Unpin for Checkup
impl !UnwindSafe for Checkup
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more