pub struct InProcessTasks { /* private fields */ }Expand description
The open-source store: tasks held in this process, gone when it exits. Enough for one local server, where a reconnecting client reaches the same process.
Trait Implementations§
Source§impl Debug for InProcessTasks
impl Debug for InProcessTasks
Source§impl Default for InProcessTasks
impl Default for InProcessTasks
Source§impl TaskStore for InProcessTasks
impl TaskStore for InProcessTasks
Source§async fn put(&self, task: StoredTask, expected: Option<u64>) -> Result<bool>
async fn put(&self, task: StoredTask, expected: Option<u64>) -> Result<bool>
Writes
task only if the stored task with its id is at version
expected (None: no task with that id exists), atomically, and
returns whether it wrote: false means another writer got there
first and the kit reads again. In SQL, an insert or an UPDATE ... WHERE version = $expected. Keeps the task for at least TASK_TTL
after task.updated_at.Auto Trait Implementations§
impl !Freeze for InProcessTasks
impl Forget for InProcessTasks
impl RefUnwindSafe for InProcessTasks
impl Send for InProcessTasks
impl Sync for InProcessTasks
impl Unpin for InProcessTasks
impl UnsafeUnpin for InProcessTasks
impl UnwindSafe for InProcessTasks
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