pub enum BusyPolicy {
Wait,
Defer {
slot_wait: Duration,
},
Now,
}Expand description
What a Heavy check does when no slot frees in time (ADR-0013,
hooks.busy-policy).
Variants§
Wait
Wait in line, with no stall end, up to greengate.timeout, then defer
the check to CI (ADR-0022, amended for the hook path): the default.
Defer
Wait up to slot_wait, then defer the check to CI.
Now
Skip the queue: run unqueued at once, journalled now (ADR-0022).
Only GREENGATE_ON_BUSY=now sets it, for one run: no committed file
can make every clone skip the queue.
Trait Implementations§
Source§impl Clone for BusyPolicy
impl Clone for BusyPolicy
impl Copy for BusyPolicy
Source§impl Debug for BusyPolicy
impl Debug for BusyPolicy
impl Eq for BusyPolicy
Source§impl PartialEq for BusyPolicy
impl PartialEq for BusyPolicy
impl StructuralPartialEq for BusyPolicy
Auto Trait Implementations§
impl Forget for BusyPolicy
impl Freeze for BusyPolicy
impl Move for BusyPolicy
impl RefUnwindSafe for BusyPolicy
impl Send for BusyPolicy
impl Sync for BusyPolicy
impl Unpin for BusyPolicy
impl UnsafeUnpin for BusyPolicy
impl UnwindSafe for BusyPolicy
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