pub struct CoreSpec {
pub set: SetSpec,
pub overrides: Vec<RepoOverride>,
pub poll_interval: Duration,
pub status_stale_after: Duration,
pub generation_deadline: Duration,
pub show_submodules: bool,
pub fetch: FetchSpec,
pub auto_update: AutoUpdateSpec,
}Expand description
Everything Core::start needs, handed as plain data. The core reads no file, no
path and no environment variable: this is the whole crossing, per
docs/spec/core-api.md’s “What crosses from config”.
Fields§
§set: SetSpec§overrides: Vec<RepoOverride>§poll_interval: Duration§status_stale_after: Duration§generation_deadline: Duration§show_submodules: boolThe initial reading of the show-submodules preference
(discovery.md’s
“Showing Submodules”): whether a dispatched Generation probes a Submodule at all.
Live-updatable afterwards through Core::set_show_submodules, which is what lets
toggling it skip a Core rebuild and the rediscovery that would come with one.
fetch: FetchSpecThe periodic fetch’s own bounding data. See FetchSpec.
auto_update: AutoUpdateSpecThe fast-forward-only auto-update’s own bounding data. See AutoUpdateSpec:
inert while fetch.enabled is itself false
(Warning::AutoUpdateWithoutFetch is what tells a config author that
combination can never fire).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreSpec
impl RefUnwindSafe for CoreSpec
impl Send for CoreSpec
impl Sync for CoreSpec
impl Unpin for CoreSpec
impl UnsafeUnpin for CoreSpec
impl UnwindSafe for CoreSpec
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,
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> ⓘ
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