pub enum HostDeliveryObservationKind {
Received,
Refused,
Incapable,
Busy,
Timeout,
}Expand description
What the host said when it was handed a delivery.
Variants§
Received
The host has it. Whether it acts on it is a later fact.
Refused
The host has it and will not act on it.
Incapable
The host cannot act on this kind of item at all.
Busy
The host is busy; offering it again later is reasonable.
Timeout
The host did not answer within its own time.
Implementations§
Source§impl HostDeliveryObservationKind
impl HostDeliveryObservationKind
pub const fn as_str(self) -> &'static str
Sourcepub const fn is_retryable(self) -> bool
pub const fn is_retryable(self) -> bool
Whether offering the same item again could plausibly work.
A refusal and an incapacity are answers; a busy host and a silent one are not, and only those two are worth a retry.
Sourcepub const fn is_received(self) -> bool
pub const fn is_received(self) -> bool
Whether the host took the item.
Trait Implementations§
Source§impl Clone for HostDeliveryObservationKind
impl Clone for HostDeliveryObservationKind
impl Copy for HostDeliveryObservationKind
Source§impl Debug for HostDeliveryObservationKind
impl Debug for HostDeliveryObservationKind
Source§impl<'de> Deserialize<'de> for HostDeliveryObservationKind
impl<'de> Deserialize<'de> for HostDeliveryObservationKind
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 HostDeliveryObservationKind
Source§impl Hash for HostDeliveryObservationKind
impl Hash for HostDeliveryObservationKind
Source§impl Ord for HostDeliveryObservationKind
impl Ord for HostDeliveryObservationKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for HostDeliveryObservationKind
impl PartialOrd for HostDeliveryObservationKind
impl StructuralPartialEq for HostDeliveryObservationKind
Auto Trait Implementations§
impl Freeze for HostDeliveryObservationKind
impl RefUnwindSafe for HostDeliveryObservationKind
impl Send for HostDeliveryObservationKind
impl Sync for HostDeliveryObservationKind
impl Unpin for HostDeliveryObservationKind
impl UnsafeUnpin for HostDeliveryObservationKind
impl UnwindSafe for HostDeliveryObservationKind
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