pub enum RecordedActivation {
Delivered(HostDeliveryRecord),
NotAttempted(HostDeliveryRecord),
Requeued(HostDeliveryRecord),
Exhausted(HostDeliveryRecord),
AlreadyEnded(HostDeliveryRecord),
Unknown,
}Expand description
What writing down an activation did to a delivery.
An activation is a push, so the answers are not the leased ones.
Reaching a host is transport and nothing more: a delivered record
stays offerable, and the host still has to come and take the work
under its own lease. What an operator needs to tell apart afterwards
is a deployment that does not wake hosts from one that tried and
could not, which is why NotAttempted is an answer rather than a
silence.
Variants§
Delivered(HostDeliveryRecord)
The host was reached, and the receipt says how.
NotAttempted(HostDeliveryRecord)
This deployment does not wake hosts; nothing was written.
Requeued(HostDeliveryRecord)
The wake-up failed and the delivery has attempts left.
Exhausted(HostDeliveryRecord)
The wake-up failed and the delivery ran out of attempts.
AlreadyEnded(HostDeliveryRecord)
The delivery already ended; an activation does not reopen it.
Unknown
No delivery of that identity is held.
Implementations§
Source§impl RecordedActivation
impl RecordedActivation
pub const fn record(&self) -> Option<&HostDeliveryRecord>
Sourcepub const fn reached_the_host(&self) -> bool
pub const fn reached_the_host(&self) -> bool
Whether the host is known to have been reached.