#[repr(i32)]pub enum VtxoSpendState {
Unspecified = 0,
Spendable = 1,
Spent = 2,
Unclaimed = 3,
Unregistered = 4,
HtlcRecvUnclaimed = 5,
}Expand description
Client-relevant spend state for a user-owned VTXO.
Server-internal states (pool, forfeit, connector) are never returned; in-flight Lightning-receive HTLCs are reported as HTLC_RECV_UNCLAIMED because the client must reveal the preimage to claim them before they become spendable.
Variants§
Unspecified = 0
Spendable = 1
The VTXO is available for spending.
Spent = 2
The VTXO has been spent (via round, OOR, or offboard).
Unclaimed = 3
The VTXO originates from a round but the server has not released the unlock preimage yet.
Unregistered = 4
The VTXO’s signed transaction chain has not been uploaded yet.
HtlcRecvUnclaimed = 5
The VTXO’s preimage haven’t been revealed yet
Implementations§
Source§impl VtxoSpendState
impl VtxoSpendState
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for VtxoSpendState
impl Clone for VtxoSpendState
Source§fn clone(&self) -> VtxoSpendState
fn clone(&self) -> VtxoSpendState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for VtxoSpendState
Source§impl Debug for VtxoSpendState
impl Debug for VtxoSpendState
Source§impl Default for VtxoSpendState
impl Default for VtxoSpendState
Source§fn default() -> VtxoSpendState
fn default() -> VtxoSpendState
impl Eq for VtxoSpendState
Source§impl From<VtxoSpendState> for i32
impl From<VtxoSpendState> for i32
Source§fn from(value: VtxoSpendState) -> i32
fn from(value: VtxoSpendState) -> i32
Source§impl Hash for VtxoSpendState
impl Hash for VtxoSpendState
Source§impl Ord for VtxoSpendState
impl Ord for VtxoSpendState
Source§fn cmp(&self, other: &VtxoSpendState) -> Ordering
fn cmp(&self, other: &VtxoSpendState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for VtxoSpendState
impl PartialEq for VtxoSpendState
Source§impl PartialOrd for VtxoSpendState
impl PartialOrd for VtxoSpendState
impl StructuralPartialEq for VtxoSpendState
Source§impl TryFrom<i32> for VtxoSpendState
impl TryFrom<i32> for VtxoSpendState
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<VtxoSpendState, UnknownEnumValue>
fn try_from(value: i32) -> Result<VtxoSpendState, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for VtxoSpendState
impl RefUnwindSafe for VtxoSpendState
impl Send for VtxoSpendState
impl Sync for VtxoSpendState
impl Unpin for VtxoSpendState
impl UnsafeUnpin for VtxoSpendState
impl UnwindSafe for VtxoSpendState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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
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>
T in a tonic::Request