pub struct WorkReceipt {
pub work: WorkRef,
pub accepted_revision: u64,
}Expand description
Acceptance receipt for a submit — the assigned work and the revision it was accepted at.
A receipt means accepted, not completed: the worker may not have called
the model yet. It exists so a lost receipt can be recovered by retrying the
same request_key.
Fields§
§work: WorkRefThe work the session accepted.
accepted_revision: u64The work’s revision at acceptance: 0 for a fresh submit; the paused
revision for a resume.
Trait Implementations§
Source§impl Clone for WorkReceipt
impl Clone for WorkReceipt
Source§fn clone(&self) -> WorkReceipt
fn clone(&self) -> WorkReceipt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkReceipt
impl Debug for WorkReceipt
Source§impl<'de> Deserialize<'de> for WorkReceipt
impl<'de> Deserialize<'de> for WorkReceipt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WorkReceipt
Source§impl PartialEq for WorkReceipt
impl PartialEq for WorkReceipt
Source§impl Serialize for WorkReceipt
impl Serialize for WorkReceipt
impl StructuralPartialEq for WorkReceipt
Auto Trait Implementations§
impl Freeze for WorkReceipt
impl RefUnwindSafe for WorkReceipt
impl Send for WorkReceipt
impl Sync for WorkReceipt
impl Unpin for WorkReceipt
impl UnsafeUnpin for WorkReceipt
impl UnwindSafe for WorkReceipt
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