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

§

type Value = u16

Define the Rust type that each enum variant corresponds.
§

type ValueVec = Vec<u16>

This has no purpose. It will be removed in the next major version.
source§

fn name() -> DynIden

Get the name of enum
source§

fn to_value(&self) -> Self::Value

Convert enum variant into the corresponding value.
source§

fn try_from_value(v: &Self::Value) -> Result<Self, DbErr>

Try to convert the corresponding value into enum variant.
source§

fn db_type() -> ColumnDef

Get the database column definition of this active enum.
source§

fn into_value(self) -> Self::Value

Convert an owned enum variant into the corresponding value.
source§

fn as_enum(&self) -> SimpleExpr

Construct a enum expression with casting
source§

fn values() -> Vec<Self::Value>

Get the name of all enum variants
source§

impl Clone for TransferStatus

source§

fn clone(&self) -> TransferStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TransferStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for TransferStatus

source§

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

source§

fn into(self) -> Value

Converts this type into the (usually inferred) input type.
source§

impl IntoEnumIterator for TransferStatus

§

type Iterator = TransferStatusIter

source§

fn iter() -> TransferStatusIter

source§

impl Nullable for TransferStatus

source§

impl Ord for TransferStatus

source§

fn cmp(&self, other: &TransferStatus) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for TransferStatus

source§

fn eq(&self, other: &TransferStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for TransferStatus

source§

fn partial_cmp(&self, other: &TransferStatus) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for TransferStatus

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<TransferStatus> for RefreshTransferStatus

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(x: TransferStatus) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryGetable for TransferStatus

source§

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>

Get a value from the query result with prefixed column name
source§

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

source§

fn try_get_by<I: ColIdx>( res: &QueryResult, index: I ) -> Result<Vec<Self>, TryGetError>

Just a delegate
source§

impl ValueType for TransferStatus

source§

impl Copy for TransferStatus

source§

impl Eq for TransferStatus

source§

impl NotU8 for TransferStatus

source§

impl StructuralEq for TransferStatus

source§

impl StructuralPartialEq for TransferStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<V> FromValueTuple for V
where V: Into<Value> + ValueType,

source§

fn from_value_tuple<I>(i: I) -> V
where I: IntoValueTuple,

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<V> IntoValueTuple for V
where V: Into<Value>,

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T> TryFromU64 for T
where T: ActiveEnum,

source§

fn try_from_u64(_: u64) -> Result<T, DbErr>

The method to convert the type to a u64
source§

impl<T> TryGetableMany for T
where T: TryGetable,

source§

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>

Get a tuple value from the query result based on the order in the select expressions
source§

fn find_by_statement<C>( stmt: Statement ) -> SelectorRaw<SelectGetableValue<Self, C>>
where C: IntoEnumIterator + Iden,

source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> VerifyEq for T
where T: Eq,

source§

fn verify_eq(&self, other: &T) -> bool

Verifies commit-equivalence of two instances of the same type.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> SendSyncUnwindSafe for T
where T: Send + Sync + UnwindSafe + ?Sized,