Struct OutboxEffectIntent
pub struct OutboxEffectIntent {
pub id: u32,
pub effect: OutboxEffect,
}Expand description
A stable effect id and its durable action.
The id is supplied by the callback owner and must be stable across a retry. It becomes part of the effect key, so vector position is never used as an idempotency key.
Fields§
§id: u32Stable id unique within one outbox record.
effect: OutboxEffectThe effect to replay.
Implementations§
§impl OutboxEffectIntent
impl OutboxEffectIntent
pub const fn new(id: u32, effect: OutboxEffect) -> Self
pub const fn new(id: u32, effect: OutboxEffect) -> Self
Creates one effect intent.
pub const fn replacement(id: u32, replacement: ReplacementSpec) -> Self
pub const fn replacement(id: u32, replacement: ReplacementSpec) -> Self
Creates a durable replacement-creation intent.
pub const fn key(&self, outbox: OutboxKey) -> OutboxEffectKey
pub const fn key(&self, outbox: OutboxKey) -> OutboxEffectKey
Returns the key for this effect under one outbox record.
Trait Implementations§
§impl Clone for OutboxEffectIntent
impl Clone for OutboxEffectIntent
§fn clone(&self) -> OutboxEffectIntent
fn clone(&self) -> OutboxEffectIntent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for OutboxEffectIntent
impl Debug for OutboxEffectIntent
§impl<'de> Deserialize<'de> for OutboxEffectIntent
impl<'de> Deserialize<'de> for OutboxEffectIntent
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for OutboxEffectIntent
impl PartialEq for OutboxEffectIntent
§impl Serialize for OutboxEffectIntent
impl Serialize for OutboxEffectIntent
impl StructuralPartialEq for OutboxEffectIntent
Auto Trait Implementations§
impl Freeze for OutboxEffectIntent
impl RefUnwindSafe for OutboxEffectIntent
impl Send for OutboxEffectIntent
impl Sync for OutboxEffectIntent
impl Unpin for OutboxEffectIntent
impl UnsafeUnpin for OutboxEffectIntent
impl UnwindSafe for OutboxEffectIntent
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