pub struct DoneCheck {
pub command: String,
pub limit: u32,
pub timeout_secs: u64,
}Expand description
lifecycle.done_check: the command whose exit status says whether a task’s work is done, and
how many times per task a failing run may reopen the task; see LifecycleConfig::done_check.
Fields§
§command: StringAs declared. Split with split_shell_words; its first word is a
capabilities.shell.allow entry.
limit: u32How many times one task may be reopened by a failing run, counted across hook reopens and
separately from max_task_reopens. 0 runs and records the check without reopening.
timeout_secs: u64How long one run may take before the runtime kills it. At least 1.
Implementations§
Source§impl DoneCheck
impl DoneCheck
Sourcepub const DEFAULT_TIMEOUT_SECS: u64 = 600
pub const DEFAULT_TIMEOUT_SECS: u64 = 600
The default DoneCheck::timeout_secs.
Sourcepub fn argv(&self) -> Vec<String>
pub fn argv(&self) -> Vec<String>
DoneCheck::command as the program and its arguments.
Trait Implementations§
impl Eq for DoneCheck
impl StructuralPartialEq for DoneCheck
Auto Trait Implementations§
impl Forget for DoneCheck
impl Freeze for DoneCheck
impl RefUnwindSafe for DoneCheck
impl Send for DoneCheck
impl Sync for DoneCheck
impl Unpin for DoneCheck
impl UnsafeUnpin for DoneCheck
impl UnwindSafe for DoneCheck
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
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more