pub struct BaseRefresh {
pub state: BaseState,
pub base_ref: Option<String>,
pub error: Option<String>,
pub cut: bool,
pub unanswered: bool,
pub at: Instant,
}Expand description
What one base refresh answered.
Fields§
§state: BaseStateHow current the base is.
base_ref: Option<String>The sha the base resolved to after the refresh. Both the stats scan and the content read are taken against this one sha, so a count and a file list can never describe two different refs.
error: Option<String>Why the fetch did not run, in git’s own first line (or forge’s words
for a child it could not start or had to bound). None when it ran.
The record carries this so a page can say what failed rather than only
that the base could not be checked.
cut: boolThe run’s own bound ended the fetch. A cut run measured nothing, so its answer is never stored as the checkout’s check.
unanswered: boolThe run ended without answering - its leader panicked or was cancelled. The state and error are a placeholder rather than a measurement, and no scan’s row carries them.
at: InstantWhen this answer’s state was established: the instant a completed
refresh measured it, the instant a drawing read decided to answer the
base unchecked, or the instant the stored measurement being reused was
taken. A scan stamps the row’s base_at from this rather than from its
own write, so a measurement that lands while the row is being stored is
still newer than the place it must land in.
Trait Implementations§
Source§impl Clone for BaseRefresh
impl Clone for BaseRefresh
Source§fn clone(&self) -> BaseRefresh
fn clone(&self) -> BaseRefresh
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BaseRefresh
impl Debug for BaseRefresh
impl Eq for BaseRefresh
Source§impl PartialEq for BaseRefresh
impl PartialEq for BaseRefresh
impl StructuralPartialEq for BaseRefresh
Auto Trait Implementations§
impl Freeze for BaseRefresh
impl RefUnwindSafe for BaseRefresh
impl Send for BaseRefresh
impl Sync for BaseRefresh
impl Unpin for BaseRefresh
impl UnsafeUnpin for BaseRefresh
impl UnwindSafe for BaseRefresh
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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