pub enum PendingState {
Pending,
Posted,
Voided,
Expired,
}Expand description
The lifecycle state of a two-phase reservation (plan §2b).
Variants§
Pending
Held, not yet resolved.
Posted
Second phase committed as a post (full or partial).
Voided
Second phase committed as a void.
Expired
Deadline passed before a second phase committed.
Implementations§
Source§impl PendingState
impl PendingState
Sourcepub fn is_terminal(self) -> bool
pub fn is_terminal(self) -> bool
Whether the reservation has reached a terminal state.
Trait Implementations§
Source§impl Clone for PendingState
impl Clone for PendingState
Source§fn clone(&self) -> PendingState
fn clone(&self) -> PendingState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PendingState
impl Debug for PendingState
Source§impl<'de> Deserialize<'de> for PendingState
impl<'de> Deserialize<'de> for PendingState
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 PartialEq for PendingState
impl PartialEq for PendingState
Source§fn eq(&self, other: &PendingState) -> bool
fn eq(&self, other: &PendingState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PendingState
impl Serialize for PendingState
impl Copy for PendingState
impl Eq for PendingState
impl StructuralPartialEq for PendingState
Auto Trait Implementations§
impl Freeze for PendingState
impl RefUnwindSafe for PendingState
impl Send for PendingState
impl Sync for PendingState
impl Unpin for PendingState
impl UnsafeUnpin for PendingState
impl UnwindSafe for PendingState
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