#[non_exhaustive]pub enum ClaimForWorkerOutcome {
NoWork,
Granted(ClaimGrant),
}Expand description
Outcome of EngineBackend::claim_for_worker. None-like shape
modelled as an enum so additive variants (e.g. BackPressured { retry_after_ms }) do not force a wire break.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoWork
No eligible execution on this lane at this scan cycle.
Granted(ClaimGrant)
Grant issued — worker proceeds to claim_from_grant.
Implementations§
Source§impl ClaimForWorkerOutcome
impl ClaimForWorkerOutcome
Sourcepub fn granted(grant: ClaimGrant) -> Self
pub fn granted(grant: ClaimGrant) -> Self
Build the Granted variant.
Trait Implementations§
Source§impl Clone for ClaimForWorkerOutcome
impl Clone for ClaimForWorkerOutcome
Source§fn clone(&self) -> ClaimForWorkerOutcome
fn clone(&self) -> ClaimForWorkerOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClaimForWorkerOutcome
impl Debug for ClaimForWorkerOutcome
Source§impl PartialEq for ClaimForWorkerOutcome
impl PartialEq for ClaimForWorkerOutcome
impl Eq for ClaimForWorkerOutcome
impl StructuralPartialEq for ClaimForWorkerOutcome
Auto Trait Implementations§
impl Freeze for ClaimForWorkerOutcome
impl RefUnwindSafe for ClaimForWorkerOutcome
impl Send for ClaimForWorkerOutcome
impl Sync for ClaimForWorkerOutcome
impl Unpin for ClaimForWorkerOutcome
impl UnsafeUnpin for ClaimForWorkerOutcome
impl UnwindSafe for ClaimForWorkerOutcome
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