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§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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.