pub enum ResourceTransactionState {
New,
Reserved,
Committed,
RolledBack,
Released,
Quarantined,
}Variants§
Implementations§
Source§impl ResourceTransactionState
impl ResourceTransactionState
pub fn transition( self, resource_id: &ResourceId, action: ResourceTransactionAction, ) -> Result<Self, VNextError>
pub const fn as_str(self) -> &'static str
Trait Implementations§
Source§impl Clone for ResourceTransactionState
impl Clone for ResourceTransactionState
Source§fn clone(&self) -> ResourceTransactionState
fn clone(&self) -> ResourceTransactionState
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 moreimpl Copy for ResourceTransactionState
Source§impl Debug for ResourceTransactionState
impl Debug for ResourceTransactionState
Source§impl<'de> Deserialize<'de> for ResourceTransactionState
impl<'de> Deserialize<'de> for ResourceTransactionState
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 ResourceTransactionState
Source§impl Ord for ResourceTransactionState
impl Ord for ResourceTransactionState
Source§fn cmp(&self, other: &ResourceTransactionState) -> Ordering
fn cmp(&self, other: &ResourceTransactionState) -> Ordering
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 ResourceTransactionState
impl PartialEq for ResourceTransactionState
Source§impl PartialOrd for ResourceTransactionState
impl PartialOrd for ResourceTransactionState
Source§impl Serialize for ResourceTransactionState
impl Serialize for ResourceTransactionState
impl StructuralPartialEq for ResourceTransactionState
Auto Trait Implementations§
impl Freeze for ResourceTransactionState
impl RefUnwindSafe for ResourceTransactionState
impl Send for ResourceTransactionState
impl Sync for ResourceTransactionState
impl Unpin for ResourceTransactionState
impl UnsafeUnpin for ResourceTransactionState
impl UnwindSafe for ResourceTransactionState
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