pub enum MeltSagaState {
SetupComplete,
PaymentAttempted,
PaymentPending,
PaymentFailed,
Finalizing,
}Expand description
States specific to melt saga
Variants§
SetupComplete
Setup complete (proofs reserved, quote verified)
PaymentAttempted
Write-ahead marker recorded before dispatch to the configured backend. A terminal negative status cannot prove that the payment was not sent.
PaymentPending
The backend acknowledged the payment attempt. Later status checks may finalize it, but must never compensate it.
PaymentFailed
The backend authoritatively reported that the payment operation ended without paying. Recovery may safely compensate this melt.
Finalizing
TX1 committed (proofs Spent, quote Paid) - change signing + cleanup pending
Trait Implementations§
Source§impl Clone for MeltSagaState
impl Clone for MeltSagaState
Source§fn clone(&self) -> MeltSagaState
fn clone(&self) -> MeltSagaState
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 MeltSagaState
impl Debug for MeltSagaState
Source§impl<'de> Deserialize<'de> for MeltSagaState
impl<'de> Deserialize<'de> for MeltSagaState
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 MeltSagaState
impl Display for MeltSagaState
impl Eq for MeltSagaState
Source§impl FromStr for MeltSagaState
impl FromStr for MeltSagaState
Source§impl PartialEq for MeltSagaState
impl PartialEq for MeltSagaState
Source§impl Serialize for MeltSagaState
impl Serialize for MeltSagaState
impl StructuralPartialEq for MeltSagaState
Auto Trait Implementations§
impl Freeze for MeltSagaState
impl RefUnwindSafe for MeltSagaState
impl Send for MeltSagaState
impl Sync for MeltSagaState
impl Unpin for MeltSagaState
impl UnsafeUnpin for MeltSagaState
impl UnwindSafe for MeltSagaState
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