pub enum RoundFlowState {
NonInteractivePending {
unlock_hash: UnlockHash,
},
InteractivePending,
InteractiveOngoing {
round_seq: RoundSeq,
attempt_seq: usize,
state: AttemptState,
},
Finished {
funding_tx: Transaction,
unlock_hash: UnlockHash,
},
Failed {
error: String,
},
Canceled,
}Expand description
The state of the process flow of a round
This tracks the progress of the interactive part of the round, from waiting to start until finishing either succesfully or with a failure.
Variants§
NonInteractivePending
We don’t do flow and we just wait for the round to finish
Fields
§
unlock_hash: UnlockHashInteractivePending
Waiting for round to happen
InteractiveOngoing
Interactive part ongoing
Finished
Interactive part finished, waiting for confirmation
Failed
Failed during round
Canceled
User canceled round
Auto Trait Implementations§
impl Freeze for RoundFlowState
impl RefUnwindSafe for RoundFlowState
impl Send for RoundFlowState
impl Sync for RoundFlowState
impl Unpin for RoundFlowState
impl UnwindSafe for RoundFlowState
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request