pub struct TaskClaim {
pub token: String,
pub expires_at: i64,
pub retaken: bool,
}Expand description
13a (13.1): the claim an owner holds after a Mnemo::task_update
(RB-012.1), so it always has the current token.
Fields§
§token: StringThe task:<slug> claim’s token.
expires_at: i64When it lapses unless an update renews it.
retaken: boolThe claim had lapsed and nobody took the task, so the owner took the claim again (with a new token).
Trait Implementations§
impl Eq for TaskClaim
impl StructuralPartialEq for TaskClaim
Auto Trait Implementations§
impl Forget for TaskClaim
impl Freeze for TaskClaim
impl Move for TaskClaim
impl RefUnwindSafe for TaskClaim
impl Send for TaskClaim
impl Sync for TaskClaim
impl Unpin for TaskClaim
impl UnsafeUnpin for TaskClaim
impl UnwindSafe for TaskClaim
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