pub struct DrainConfig {
pub cwd: PathBuf,
pub fno_bin: String,
pub mission: String,
pub failure_limit: u32,
}Expand description
Everything one mission_drain_tick needs, resolved by the daemon per tick.
The dispatch logic lives in advance --epic (K1’s converge core), so the
daemon carries only what reconcile + the breaker need: the epic id to
converge, the epic’s own cwd (roots the journal + node-global done/defer
reads), the fno binary, and the failure limit.
Fields§
§cwd: PathBufThe mission’s epic project cwd - roots the journal and the node-global
backlog done/defer reads (a mission fans out across projects at
dispatch time via advance --epic, not here).
fno_bin: StringThe fno binary name/path (FNO_BIN override honored by the caller).
mission: StringThe active mission’s epic id - the advance --epic <mission> argument.
failure_limit: u32Cross-tick consecutive-failure limit (the circuit breaker).
Trait Implementations§
Source§impl Clone for DrainConfig
impl Clone for DrainConfig
Source§fn clone(&self) -> DrainConfig
fn clone(&self) -> DrainConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DrainConfig
impl RefUnwindSafe for DrainConfig
impl Send for DrainConfig
impl Sync for DrainConfig
impl Unpin for DrainConfig
impl UnsafeUnpin for DrainConfig
impl UnwindSafe for DrainConfig
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