pub struct EffectContext { /* private fields */ }Expand description
What an effect’s action knows about the attempt it is running.
Implementations§
Source§impl EffectContext
impl EffectContext
Sourcepub fn idempotency_key(&self) -> IdempotencyKey
pub fn idempotency_key(&self) -> IdempotencyKey
The key to forward to the remote system, e.g. as an HTTP
Idempotency-Key header. The same for every attempt of the effect.
Trait Implementations§
Source§impl Clone for EffectContext
impl Clone for EffectContext
Auto Trait Implementations§
impl Freeze for EffectContext
impl RefUnwindSafe for EffectContext
impl Send for EffectContext
impl Sync for EffectContext
impl Unpin for EffectContext
impl UnsafeUnpin for EffectContext
impl UnwindSafe for EffectContext
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