pub enum VtxoState {
Spendable,
Spent,
Locked {
movement_id: Option<MovementId>,
},
}Expand description
Rich Vtxo state carrying additional context needed at runtime.
Variants§
Spendable
The Vtxo is available and can be spent in a future round.
Spent
The Vtxo has been consumed.
Locked
The Vtxo is currently locked in an action.
Fields
§
movement_id: Option<MovementId>The ID of the associated [Movement] that locked this VTXO.
Implementations§
Source§impl VtxoState
impl VtxoState
Sourcepub fn kind(&self) -> VtxoStateKind
pub fn kind(&self) -> VtxoStateKind
Returns the compact VtxoStateKind discriminator for this rich state.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VtxoState
impl<'de> Deserialize<'de> for VtxoState
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 VtxoState
impl StructuralPartialEq for VtxoState
Auto Trait Implementations§
impl Freeze for VtxoState
impl RefUnwindSafe for VtxoState
impl Send for VtxoState
impl Sync for VtxoState
impl Unpin for VtxoState
impl UnwindSafe for VtxoState
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,
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<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