pub struct Integrator {
pub ml: Mainline,
pub gate_jobs: usize,
pub board: GateBoard,
}Fields§
§ml: Mainline§gate_jobs: usizeVerification rows run at once.
board: GateBoardWhere the integrator says which step and commands it is running.
Implementations§
Source§impl Integrator
impl Integrator
pub fn new(ml: Mainline, gate_jobs: usize) -> Integrator
Sourcepub fn with_board(self, board: GateBoard) -> Integrator
pub fn with_board(self, board: GateBoard) -> Integrator
The integrator, reporting its progress to board.
Sourcepub fn integrate(
&self,
req: &IntegrateRequest,
memo: &mut GateMemo,
before_publish: Option<&dyn Fn()>,
) -> Result<Outcome, CoreError>
pub fn integrate( &self, req: &IntegrateRequest, memo: &mut GateMemo, before_publish: Option<&dyn Fn()>, ) -> Result<Outcome, CoreError>
Integrate one Built unit. before_publish is a test seam fired after
the gate and before the CAS/push (lost-race rehearsals).
Sourcepub fn integrate_batch(
&self,
reqs: &[IntegrateRequest],
memo: &mut GateMemo,
before_publish: Option<&dyn Fn()>,
) -> Result<Vec<Outcome>, CoreError>
pub fn integrate_batch( &self, reqs: &[IntegrateRequest], memo: &mut GateMemo, before_publish: Option<&dyn Fn()>, ) -> Result<Vec<Outcome>, CoreError>
Integrate every request as one batch: one gate run for all of them.
Outcomes are index-aligned with reqs. A red batch of several is
integrated again one at a time.
Auto Trait Implementations§
impl Forget for Integrator
impl Freeze for Integrator
impl Move for Integrator
impl RefUnwindSafe for Integrator
impl Send for Integrator
impl Sync for Integrator
impl Unpin for Integrator
impl UnsafeUnpin for Integrator
impl UnwindSafe for Integrator
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