pub struct Claim {
pub entry: QueueEntry,
/* private fields */
}Expand description
A claimed queue entry: the entry file was atomically RENAMED to
<name>.json.claimed.<pid>, so no sibling dispatcher can double-run it,
and a crash before completion leaves a recoverable file instead of
dropped work. Call finish_claim when the mission reached a terminal
state (any outcome), or release_claim to put the entry back.
Fields§
§entry: QueueEntryTrait Implementations§
Auto Trait Implementations§
impl Freeze for Claim
impl RefUnwindSafe for Claim
impl Send for Claim
impl Sync for Claim
impl Unpin for Claim
impl UnsafeUnpin for Claim
impl UnwindSafe for Claim
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