Skip to main content

KeyedOutcome

Enum KeyedOutcome 

Source
pub enum KeyedOutcome<Key, Role, Job, WorkerResult> {
    Accepted {
        submission: SubmissionId,
        job: JobId,
        binding: BindingEvidence<Role>,
    },
    Rejected {
        submission: SubmissionId,
        key: Key,
        payload: Job,
        reason: KeyedAdmissionRejection,
    },
    Completed {
        job: JobId,
        binding: BindingEvidence<Role>,
        worker_result: WorkerResult,
    },
    ReturnedQueued {
        job: JobId,
        binding: BindingEvidence<Role>,
        payload: Job,
        reason: KeyedQueuedReturnReason,
    },
    ReturnedAssigned {
        job: JobId,
        binding: BindingEvidence<Role>,
        payload: Job,
        reason: KeyedAssignedReturnReason,
    },
}
Expand description

Complete customer-visible progress or terminal result for keyed work.

Variants§

§

Accepted

One submission and its binding were accepted together.

Fields

§submission: SubmissionId

Customer-authored admission correlation.

§job: JobId

Pool-issued accepted-job correlation.

§binding: BindingEvidence<Role>

Immutable admitted role and generation.

§

Rejected

Admission rejected without retaining the key or payload.

Fields

§submission: SubmissionId

Customer-authored admission correlation.

§key: Key

Complete submitted key.

§payload: Job

Complete submitted payload.

§reason: KeyedAdmissionRejection

Exact rejection reason.

§

Completed

The exact accepted assignment completed.

Fields

§job: JobId

Pool-issued accepted-job correlation.

§binding: BindingEvidence<Role>

Immutable admitted role and generation.

§worker_result: WorkerResult

Worker-produced domain result.

§

ReturnedQueued

Accepted queued work returned before assignment.

Fields

§job: JobId

Pool-issued accepted-job correlation.

§binding: BindingEvidence<Role>

Immutable admitted role and generation.

§payload: Job

Complete retained payload.

§reason: KeyedQueuedReturnReason

Exact terminal reason.

§

ReturnedAssigned

Accepted assigned work returned without completion.

Fields

§job: JobId

Pool-issued accepted-job correlation.

§binding: BindingEvidence<Role>

Immutable admitted role and generation.

§payload: Job

Complete retained payload.

§reason: KeyedAssignedReturnReason

Exact terminal reason.

Auto Trait Implementations§

§

impl<Key, Role, Job, WorkerResult> Freeze for KeyedOutcome<Key, Role, Job, WorkerResult>
where Key: Freeze, Job: Freeze, WorkerResult: Freeze,

§

impl<Key, Role, Job, WorkerResult> RefUnwindSafe for KeyedOutcome<Key, Role, Job, WorkerResult>
where Key: RefUnwindSafe, Job: RefUnwindSafe, WorkerResult: RefUnwindSafe, Role: RefUnwindSafe,

§

impl<Key, Role, Job, WorkerResult> Send for KeyedOutcome<Key, Role, Job, WorkerResult>
where Key: Send, Job: Send, WorkerResult: Send, Role: Sync + Send,

§

impl<Key, Role, Job, WorkerResult> Sync for KeyedOutcome<Key, Role, Job, WorkerResult>
where Key: Sync, Job: Sync, WorkerResult: Sync, Role: Sync + Send,

§

impl<Key, Role, Job, WorkerResult> Unpin for KeyedOutcome<Key, Role, Job, WorkerResult>
where Key: Unpin, Job: Unpin, WorkerResult: Unpin,

§

impl<Key, Role, Job, WorkerResult> UnsafeUnpin for KeyedOutcome<Key, Role, Job, WorkerResult>
where Key: UnsafeUnpin, Job: UnsafeUnpin, WorkerResult: UnsafeUnpin,

§

impl<Key, Role, Job, WorkerResult> UnwindSafe for KeyedOutcome<Key, Role, Job, WorkerResult>
where Key: UnwindSafe, Job: UnwindSafe, WorkerResult: UnwindSafe, Role: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.