pub struct Doctor {
pub checks: Vec<Check>,
pub state: Option<DoctorState>,
}Expand description
GET /v1/doctor: what runnerd doctor checks, for the config the daemon runs with.
Fields§
§checks: Vec<Check>In the order a new user fixes them.
state: Option<DoctorState>How current checks are (ADR 0132); absent from runnerd doctor and from a daemon before 0.2, which ran
them for the request.
Implementations§
Source§impl Doctor
impl Doctor
Sourcepub fn passed(&self) -> bool
pub fn passed(&self) -> bool
Whether runners can run as far as the checks say: they are of a current run, or a daemon that says nothing of its run, and none failed. Warnings, skips and notes pass; checks that are not current never do.
Sourcepub fn all_passed(checks: &[Check]) -> bool
pub fn all_passed(checks: &[Check]) -> bool
Doctor::passed of checks not yet in a Doctor, as runnerd doctor runs them.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Doctor
impl<'de> Deserialize<'de> for Doctor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Doctor
impl StructuralPartialEq for Doctor
Auto Trait Implementations§
impl Forget for Doctor
impl Freeze for Doctor
impl Move for Doctor
impl RefUnwindSafe for Doctor
impl Send for Doctor
impl Sync for Doctor
impl Unpin for Doctor
impl UnsafeUnpin for Doctor
impl UnwindSafe for Doctor
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.