Enum rgb_lib::TransferStatus
source · pub enum TransferStatus {
WaitingCounterparty = 1,
WaitingConfirmations = 2,
Settled = 3,
Failed = 4,
}
Expand description
The status of a crate::wallet::Transfer
.
Variants§
WaitingCounterparty = 1
Waiting for the counterparty to take action
WaitingConfirmations = 2
Waiting for the transfer transaction to reach the required number of confirmations
Settled = 3
Settled transfer, this status is final
Failed = 4
Failed transfer, this status is final
Trait Implementations§
source§impl ActiveEnum for TransferStatus
impl ActiveEnum for TransferStatus
source§fn try_from_value(v: &Self::Value) -> Result<Self, DbErr>
fn try_from_value(v: &Self::Value) -> Result<Self, DbErr>
Try to convert the corresponding value into enum variant.
source§fn into_value(self) -> Self::Value
fn into_value(self) -> Self::Value
Convert an owned enum variant into the corresponding value.
source§fn as_enum(&self) -> SimpleExpr
fn as_enum(&self) -> SimpleExpr
Construct a enum expression with casting
source§impl Clone for TransferStatus
impl Clone for TransferStatus
source§fn clone(&self) -> TransferStatus
fn clone(&self) -> TransferStatus
Returns a copy of the value. Read more
1.0.0 · 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 TransferStatus
impl Debug for TransferStatus
source§impl<'de> Deserialize<'de> for TransferStatus
impl<'de> Deserialize<'de> for TransferStatus
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 Into<Value> for TransferStatus
impl Into<Value> for TransferStatus
source§impl IntoEnumIterator for TransferStatus
impl IntoEnumIterator for TransferStatus
source§impl Ord for TransferStatus
impl Ord for TransferStatus
source§fn cmp(&self, other: &TransferStatus) -> Ordering
fn cmp(&self, other: &TransferStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TransferStatus
impl PartialEq for TransferStatus
source§fn eq(&self, other: &TransferStatus) -> bool
fn eq(&self, other: &TransferStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TransferStatus
impl PartialOrd for TransferStatus
source§fn partial_cmp(&self, other: &TransferStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &TransferStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for TransferStatus
impl Serialize for TransferStatus
source§impl TryGetable for TransferStatus
impl TryGetable for TransferStatus
source§fn try_get_by<I: ColIdx>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>
fn try_get_by<I: ColIdx>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>
Get a value from the query result with an ColIdx
source§fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
Get a value from the query result with prefixed column name
source§fn try_get_by_index(
res: &QueryResult,
index: usize
) -> Result<Self, TryGetError>
fn try_get_by_index( res: &QueryResult, index: usize ) -> Result<Self, TryGetError>
Get a value from the query result based on the order in the select expressions
source§impl TryGetableArray for TransferStatus
impl TryGetableArray for TransferStatus
source§fn try_get_by<I: ColIdx>(
res: &QueryResult,
index: I
) -> Result<Vec<Self>, TryGetError>
fn try_get_by<I: ColIdx>( res: &QueryResult, index: I ) -> Result<Vec<Self>, TryGetError>
Just a delegate
source§impl ValueType for TransferStatus
impl ValueType for TransferStatus
impl Copy for TransferStatus
impl Eq for TransferStatus
impl NotU8 for TransferStatus
impl StructuralEq for TransferStatus
impl StructuralPartialEq for TransferStatus
Auto Trait Implementations§
impl RefUnwindSafe for TransferStatus
impl Send for TransferStatus
impl Sync for TransferStatus
impl Unpin for TransferStatus
impl UnwindSafe for TransferStatus
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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§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<V> FromValueTuple for V
impl<V> FromValueTuple for V
fn from_value_tuple<I>(i: I) -> Vwhere
I: IntoValueTuple,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<V> IntoValueTuple for V
impl<V> IntoValueTuple for V
fn into_value_tuple(self) -> ValueTuple
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> TryFromU64 for Twhere
T: ActiveEnum,
impl<T> TryFromU64 for Twhere
T: ActiveEnum,
source§impl<T> TryGetableMany for Twhere
T: TryGetable,
impl<T> TryGetableMany for Twhere
T: TryGetable,
source§fn try_get_many(
res: &QueryResult,
pre: &str,
cols: &[String]
) -> Result<T, TryGetError>
fn try_get_many( res: &QueryResult, pre: &str, cols: &[String] ) -> Result<T, TryGetError>
Get a tuple value from the query result with prefixed column name
source§fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
Get a tuple value from the query result based on the order in the select expressions