pub struct Runs(/* private fields */);Expand description
The workflow runs seen lately, by attempt: their jobs not queued yet get warm runners.
Implementations§
Source§impl Runs
impl Runs
Sourcepub fn note(
&mut self,
pool: &Pool,
attempt: Attempt,
job: u64,
workflow: Option<&str>,
at: u64,
)
pub fn note( &mut self, pool: &Pool, attempt: Attempt, job: u64, workflow: Option<&str>, at: u64, )
Notes job of attempt for pool, queued or taken at at (ms), and its workflow when known.
Sourcepub fn place(
&mut self,
pool: &Pool,
attempt: Attempt,
job: u64,
workflow: Option<&str>,
at: u64,
)
pub fn place( &mut self, pool: &Pool, attempt: Attempt, job: u64, workflow: Option<&str>, at: u64, )
Moves job to attempt once GitHub said which attempt it is of, when it was noted under another of the
run’s: a job a runner took is first noted under its run’s latest attempt known, which for a re-run’s first
job is the attempt before. An attempt it alone made is forgotten, and its time goes with the job; a job that
joined an older attempt counts from at (ms). A job not followed stays so, so a run forgotten while its job
ran is not counted again.
Sourcepub fn name(&mut self, run_id: u64, workflow: &str)
pub fn name(&mut self, run_id: u64, workflow: &str)
Names the workflow of run run_id’s attempts followed whose workflow was not known.
Sourcepub fn latest(&self, run_id: u64) -> Attempt
pub fn latest(&self, run_id: u64) -> Attempt
The latest attempt of run run_id followed, or its first.
Trait Implementations§
impl Eq for Runs
impl StructuralPartialEq for Runs
Auto Trait Implementations§
impl Freeze for Runs
impl RefUnwindSafe for Runs
impl Send for Runs
impl Sync for Runs
impl Unpin for Runs
impl UnsafeUnpin for Runs
impl UnwindSafe for Runs
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.