pub enum ExitStateKind {
Start,
Processing,
AwaitingDelta,
Claimable,
ClaimInProgress,
Claimed,
VtxoAlreadySpent,
Canceled,
}Expand description
A flat, data-free discriminator for ExitState. Useful for filtering exits by state without caring about the per-state payload — e.g. crate::persist::BarkPersister::get_exit_vtxo_entries_with_states.
The serde representation matches ExitState’s type tag (kebab-case), so the two stay in sync.
Variants§
Implementations§
Source§impl ExitStateKind
impl ExitStateKind
Sourcepub const ALL: &[ExitStateKind]
pub const ALL: &[ExitStateKind]
List of all the different states.
Sourcepub const LIVE_STATES: &[ExitStateKind]
pub const LIVE_STATES: &[ExitStateKind]
List of the states in which an exit is still live and actionable.
Sourcepub const FINISHED_STATES: &[ExitStateKind]
pub const FINISHED_STATES: &[ExitStateKind]
List of the states in which an exit is finished and will never progress again. A canceled exit’s VTXO stays spendable, so a fresh exit can be started for it later.
Trait Implementations§
Source§impl Clone for ExitStateKind
impl Clone for ExitStateKind
Source§fn clone(&self) -> ExitStateKind
fn clone(&self) -> ExitStateKind
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 ExitStateKind
Source§impl Debug for ExitStateKind
impl Debug for ExitStateKind
Source§impl<'de> Deserialize<'de> for ExitStateKind
impl<'de> Deserialize<'de> for ExitStateKind
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 ExitStateKind
impl Display for ExitStateKind
impl Eq for ExitStateKind
Source§impl Hash for ExitStateKind
impl Hash for ExitStateKind
Source§impl PartialEq for ExitStateKind
impl PartialEq for ExitStateKind
Source§impl Serialize for ExitStateKind
impl Serialize for ExitStateKind
impl StructuralPartialEq for ExitStateKind
Auto Trait Implementations§
impl Freeze for ExitStateKind
impl RefUnwindSafe for ExitStateKind
impl Send for ExitStateKind
impl Sync for ExitStateKind
impl Unpin for ExitStateKind
impl UnsafeUnpin for ExitStateKind
impl UnwindSafe for ExitStateKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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