pub struct InterventionDeliveryAck { /* private fields */ }Expand description
The sealed proof that a named agent saw a named intervention.
The one transport-adjacent fact that belongs in the journal, and it is here because it is not a transport fact: queueing, leasing and pushing are the engine’s attempts, while this is a statement by the host about what it observed. A host-reported status label saying an intervention was delivered is a claim; this is the evidence.
Implementations§
Source§impl InterventionDeliveryAck
impl InterventionDeliveryAck
pub const fn new( delivery_id: HostDeliveryId, recipient: DeliveryRecipient, observation: HostDeliveryObservation, acknowledged_at: OffsetDateTime, ) -> Self
pub const fn delivery_id(&self) -> &HostDeliveryId
pub const fn recipient(&self) -> &DeliveryRecipient
pub const fn observation(&self) -> &HostDeliveryObservation
pub const fn acknowledged_at(&self) -> OffsetDateTime
Sourcepub fn agrees_with(&self, other: &Self) -> bool
pub fn agrees_with(&self, other: &Self) -> bool
Whether this acknowledgement is the same fact as another.
Two acknowledgements of one delivery agree only if the same recipient said the same thing. A host that retried after losing its answer repeats itself and is recognised; a host that changed its answer is a conflict, because the first answer was already sealed and the stream does not overwrite.
Trait Implementations§
Source§impl Clone for InterventionDeliveryAck
impl Clone for InterventionDeliveryAck
Source§impl Debug for InterventionDeliveryAck
impl Debug for InterventionDeliveryAck
Source§impl<'de> Deserialize<'de> for InterventionDeliveryAck
impl<'de> Deserialize<'de> for InterventionDeliveryAck
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 InterventionDeliveryAck
Source§impl PartialEq for InterventionDeliveryAck
impl PartialEq for InterventionDeliveryAck
Source§impl Serialize for InterventionDeliveryAck
impl Serialize for InterventionDeliveryAck
impl StructuralPartialEq for InterventionDeliveryAck
Auto Trait Implementations§
impl Freeze for InterventionDeliveryAck
impl RefUnwindSafe for InterventionDeliveryAck
impl Send for InterventionDeliveryAck
impl Sync for InterventionDeliveryAck
impl Unpin for InterventionDeliveryAck
impl UnsafeUnpin for InterventionDeliveryAck
impl UnwindSafe for InterventionDeliveryAck
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