pub enum Settled<T> {
Unknown(Unknown),
Known {
value: T,
at: Timestamp,
stale: bool,
},
Failed(ProbeError),
NotApplicable,
}Expand description
What a Cell has settled to. Never a bare Option<T>, so an absent value can
never be read as a default.
Variants§
Unknown(Unknown)
Asked and got nothing back, for one of Unknown’s closed reasons.
Known
A value as of at; stale means known to be old with nothing currently
fixing it.
Failed(ProbeError)
The probe itself failed.
NotApplicable
A settled fact rather than a missing value: this column has no meaning for
this row. Its three producers are Worktree state on a Repo row, base on a
row whose branch is itself the default branch, and base on a Repo with no
remote.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Settled<T>where
T: Freeze,
impl<T> RefUnwindSafe for Settled<T>where
T: RefUnwindSafe,
impl<T> Send for Settled<T>where
T: Send,
impl<T> Sync for Settled<T>where
T: Sync,
impl<T> Unpin for Settled<T>where
T: Unpin,
impl<T> UnsafeUnpin for Settled<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Settled<T>where
T: UnwindSafe,
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,
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