pub struct ProcessedActionRef { /* private fields */ }Expand description
The act that closed a delivery, named so a repeat is recognisable.
Equality is what makes mark_processed idempotent: the same act,
offered twice by a host that retried after losing its answer, is one
act. A different one on a delivery that is already processed is a
conflict, not a second closing.
Implementations§
Source§impl ProcessedActionRef
impl ProcessedActionRef
pub const fn new( kind: ProcessedActionKind, idempotency_key: Option<IdempotencyKey>, ) -> Self
Sourcepub const fn of(kind: ProcessedActionKind) -> Self
pub const fn of(kind: ProcessedActionKind) -> Self
An act with no key of its own; the kind is the whole identity.
pub const fn kind(&self) -> ProcessedActionKind
pub const fn idempotency_key(&self) -> Option<&IdempotencyKey>
Trait Implementations§
Source§impl Clone for ProcessedActionRef
impl Clone for ProcessedActionRef
Source§impl Debug for ProcessedActionRef
impl Debug for ProcessedActionRef
Source§impl<'de> Deserialize<'de> for ProcessedActionRef
impl<'de> Deserialize<'de> for ProcessedActionRef
Source§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 Eq for ProcessedActionRef
Source§impl PartialEq for ProcessedActionRef
impl PartialEq for ProcessedActionRef
Source§impl Serialize for ProcessedActionRef
impl Serialize for ProcessedActionRef
impl StructuralPartialEq for ProcessedActionRef
Auto Trait Implementations§
impl Freeze for ProcessedActionRef
impl RefUnwindSafe for ProcessedActionRef
impl Send for ProcessedActionRef
impl Sync for ProcessedActionRef
impl Unpin for ProcessedActionRef
impl UnsafeUnpin for ProcessedActionRef
impl UnwindSafe for ProcessedActionRef
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