#[non_exhaustive]pub struct TaskTaken {
pub task: Task,
pub token: String,
pub expires_at: i64,
pub reclaimed_from: Option<String>,
}Expand description
13a (13.1): a task Mnemo::task_next took, with its claim’s token.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.task: TaskThe task, now active and this agent’s.
token: StringThe task:<slug> claim’s token (give it to task_update for the
strict check).
expires_at: i64When the claim lapses unless an update renews it.
reclaimed_from: Option<String>The owner whose claim lapsed, when this took an abandoned task back.
Trait Implementations§
impl StructuralPartialEq for TaskTaken
Auto Trait Implementations§
impl Forget for TaskTaken
impl Freeze for TaskTaken
impl Move for TaskTaken
impl RefUnwindSafe for TaskTaken
impl Send for TaskTaken
impl Sync for TaskTaken
impl Unpin for TaskTaken
impl UnsafeUnpin for TaskTaken
impl UnwindSafe for TaskTaken
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