Enum CronJobClaim
pub enum CronJobClaim<'a> {
Unclaimed,
DisabledOnly,
Sole(&'a str),
Contested(Vec<&'a str>),
}Expand description
How [agents.<alias>].cron_jobs membership claims a cron job id. See
Config::agent_for_cron_job: only a CronJobClaim::Sole claim names an
owner through configuration; every other shape names none.
Variants§
Unclaimed
No enabled agent lists the id.
DisabledOnly
Only disabled agents list the id.
Sole(&'a str)
Exactly one enabled agent lists the id.
Contested(Vec<&'a str>)
More than one enabled agent lists the id (aliases sorted).
Trait Implementations§
Source§impl<'a> Clone for CronJobClaim<'a>
impl<'a> Clone for CronJobClaim<'a>
Source§fn clone(&self) -> CronJobClaim<'a>
fn clone(&self) -> CronJobClaim<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CronJobClaim<'a>
impl<'a> Debug for CronJobClaim<'a>
impl<'a> Eq for CronJobClaim<'a>
Source§impl<'a> PartialEq for CronJobClaim<'a>
impl<'a> PartialEq for CronJobClaim<'a>
impl<'a> StructuralPartialEq for CronJobClaim<'a>
Auto Trait Implementations§
impl<'a> Freeze for CronJobClaim<'a>
impl<'a> RefUnwindSafe for CronJobClaim<'a>
impl<'a> Send for CronJobClaim<'a>
impl<'a> Sync for CronJobClaim<'a>
impl<'a> Unpin for CronJobClaim<'a>
impl<'a> UnsafeUnpin for CronJobClaim<'a>
impl<'a> UnwindSafe for CronJobClaim<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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