pub enum HostDeliveryStateKind {
Queued,
Leased,
DeliveredToHost,
Acknowledged,
Processed,
Failed,
Expired,
Superseded,
}Expand description
The name of a delivery’s state, without what the state carries.
Its own type because two places need the name and not the payload: the bounded history of what a delivery has been, and a query that asks for everything currently in one state.
Variants§
Implementations§
Source§impl HostDeliveryStateKind
impl HostDeliveryStateKind
pub const fn as_str(self) -> &'static str
Sourcepub const fn is_terminal(self) -> bool
pub const fn is_terminal(self) -> bool
Whether nothing further will happen to a delivery in this state.
Sourcepub const fn is_offerable(self) -> bool
pub const fn is_offerable(self) -> bool
Whether a host could still be handed this delivery.
Trait Implementations§
Source§impl Clone for HostDeliveryStateKind
impl Clone for HostDeliveryStateKind
impl Copy for HostDeliveryStateKind
Source§impl Debug for HostDeliveryStateKind
impl Debug for HostDeliveryStateKind
Source§impl<'de> Deserialize<'de> for HostDeliveryStateKind
impl<'de> Deserialize<'de> for HostDeliveryStateKind
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
Source§impl Display for HostDeliveryStateKind
impl Display for HostDeliveryStateKind
impl Eq for HostDeliveryStateKind
Source§impl Hash for HostDeliveryStateKind
impl Hash for HostDeliveryStateKind
Source§impl Ord for HostDeliveryStateKind
impl Ord for HostDeliveryStateKind
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 PartialEq for HostDeliveryStateKind
impl PartialEq for HostDeliveryStateKind
Source§impl PartialOrd for HostDeliveryStateKind
impl PartialOrd for HostDeliveryStateKind
Source§impl Serialize for HostDeliveryStateKind
impl Serialize for HostDeliveryStateKind
impl StructuralPartialEq for HostDeliveryStateKind
Auto Trait Implementations§
impl Freeze for HostDeliveryStateKind
impl RefUnwindSafe for HostDeliveryStateKind
impl Send for HostDeliveryStateKind
impl Sync for HostDeliveryStateKind
impl Unpin for HostDeliveryStateKind
impl UnsafeUnpin for HostDeliveryStateKind
impl UnwindSafe for HostDeliveryStateKind
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