pub struct ActivityContext { /* private fields */ }Expand description
The input to every activity invocation: the claimed task’s identity, attempt ordinal, dedup key, and payload.
task_id (and, when the enqueue side set one, idempotency_key) are
the correlation handles for external side effects — a redelivered task
(lease expiry, crash) re-runs the handler with the same ids, which is
what makes the effect effectively-once.
Implementations§
Source§impl ActivityContext
impl ActivityContext
Trait Implementations§
Source§impl Clone for ActivityContext
impl Clone for ActivityContext
Auto Trait Implementations§
impl Freeze for ActivityContext
impl RefUnwindSafe for ActivityContext
impl Send for ActivityContext
impl Sync for ActivityContext
impl Unpin for ActivityContext
impl UnsafeUnpin for ActivityContext
impl UnwindSafe for ActivityContext
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