Skip to main content

Integrator

Struct Integrator 

Source
pub struct Integrator {
    pub ml: Mainline,
    pub gate_jobs: usize,
    pub board: GateBoard,
}

Fields§

§ml: Mainline§gate_jobs: usize

Verification rows run at once.

§board: GateBoard

Where the integrator says which step and commands it is running.

Implementations§

Source§

impl Integrator

Source

pub fn new(ml: Mainline, gate_jobs: usize) -> Integrator

Source

pub fn with_board(self, board: GateBoard) -> Integrator

The integrator, reporting its progress to board.

Source

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).

Source

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.

Source

pub fn benign(&self, old: &str, new: &str) -> Result<bool, CoreError>

benign for this integrator’s repository.

Source

pub fn check_head( &self, memo: &mut GateMemo, want_suite: bool, ) -> Result<HeadCheck, CoreError>

The mainline head as the termination report needs it: the audit (check 4 skipped when memo shows every Verified table green on this tree) and, when want_suite, the §5 Test command.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.