pub enum DeliveryFailureOutcome {
Requeued(HostDeliveryRecord),
Exhausted(HostDeliveryRecord),
LeaseNotOwned,
}Expand description
What a failed attempt did to a delivery.
Variants§
Requeued(HostDeliveryRecord)
Attempts remain; it is back in the queue.
Exhausted(HostDeliveryRecord)
Attempts ran out; the failure is visible and stays.
LeaseNotOwned
The lease offered is not the one that holds this delivery.
Implementations§
Source§impl DeliveryFailureOutcome
impl DeliveryFailureOutcome
pub const fn record(&self) -> Option<&HostDeliveryRecord>
pub const fn is_exhausted(&self) -> bool
Trait Implementations§
Source§impl Clone for DeliveryFailureOutcome
impl Clone for DeliveryFailureOutcome
Source§impl Debug for DeliveryFailureOutcome
impl Debug for DeliveryFailureOutcome
impl Eq for DeliveryFailureOutcome
Source§impl PartialEq for DeliveryFailureOutcome
impl PartialEq for DeliveryFailureOutcome
impl StructuralPartialEq for DeliveryFailureOutcome
Auto Trait Implementations§
impl Freeze for DeliveryFailureOutcome
impl RefUnwindSafe for DeliveryFailureOutcome
impl Send for DeliveryFailureOutcome
impl Sync for DeliveryFailureOutcome
impl Unpin for DeliveryFailureOutcome
impl UnsafeUnpin for DeliveryFailureOutcome
impl UnwindSafe for DeliveryFailureOutcome
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