pub enum TransactionStatus {
Completed,
Failed,
Unprocessed,
Sending,
Unproven,
Unsigned,
Nosend,
Nonfinal,
Unfail,
}Expand description
Status of a wallet transaction.
Maps to TS TransactionStatus in wallet-toolbox/src/sdk/types.ts.
Variants§
Completed
Transaction completed successfully and is proven on chain.
Failed
Transaction failed to broadcast or was rejected.
Unprocessed
Transaction has not yet been processed.
Sending
Transaction is currently being broadcast to the network.
Unproven
Transaction was broadcast but is not yet proven in a block.
Unsigned
Transaction is awaiting signatures before it can be broadcast.
Nosend
Transaction was created with noSend flag and will not be broadcast.
Nonfinal
Transaction contains nLockTime or nSequence constraints and is not yet final.
Unfail
Transaction is being unfailed (moved from failed back to processing).
Trait Implementations§
Source§impl Clone for TransactionStatus
impl Clone for TransactionStatus
Source§fn clone(&self) -> TransactionStatus
fn clone(&self) -> TransactionStatus
Returns a duplicate 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 TransactionStatus
impl Debug for TransactionStatus
Source§impl<'r> Decode<'r, MySql> for TransactionStatus
Available on crate feature mysql only.
impl<'r> Decode<'r, MySql> for TransactionStatus
Available on crate feature
mysql only.Source§fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MySqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Postgres> for TransactionStatus
Available on crate feature postgres only.
impl<'r> Decode<'r, Postgres> for TransactionStatus
Available on crate feature
postgres only.Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Sqlite> for TransactionStatus
Available on crate feature sqlite only.
impl<'r> Decode<'r, Sqlite> for TransactionStatus
Available on crate feature
sqlite only.Source§fn decode(value: SqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SqliteValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'de> Deserialize<'de> for TransactionStatus
impl<'de> Deserialize<'de> for TransactionStatus
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 TransactionStatus
impl Display for TransactionStatus
Source§impl<'q> Encode<'q, MySql> for TransactionStatus
Available on crate feature mysql only.
impl<'q> Encode<'q, MySql> for TransactionStatus
Available on crate feature
mysql only.Source§fn encode_by_ref(
&self,
buf: &mut <MySql as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer<'q>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Postgres> for TransactionStatus
Available on crate feature postgres only.
impl<'q> Encode<'q, Postgres> for TransactionStatus
Available on crate feature
postgres only.Source§fn encode_by_ref(
&self,
buf: &mut <Postgres as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut <Postgres as Database>::ArgumentBuffer<'q>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Sqlite> for TransactionStatus
Available on crate feature sqlite only.
impl<'q> Encode<'q, Sqlite> for TransactionStatus
Available on crate feature
sqlite only.Source§fn encode_by_ref(
&self,
buf: &mut <Sqlite as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut <Sqlite as Database>::ArgumentBuffer<'q>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl FromStr for TransactionStatus
impl FromStr for TransactionStatus
Source§impl PartialEq for TransactionStatus
impl PartialEq for TransactionStatus
Source§impl Serialize for TransactionStatus
impl Serialize for TransactionStatus
Source§impl TryFrom<&str> for TransactionStatus
impl TryFrom<&str> for TransactionStatus
Source§impl Type<MySql> for TransactionStatus
Available on crate feature mysql only.
impl Type<MySql> for TransactionStatus
Available on crate feature
mysql only.Source§fn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Postgres> for TransactionStatus
Available on crate feature postgres only.
impl Type<Postgres> for TransactionStatus
Available on crate feature
postgres only.Source§fn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Sqlite> for TransactionStatus
Available on crate feature sqlite only.
impl Type<Sqlite> for TransactionStatus
Available on crate feature
sqlite only.Source§fn type_info() -> SqliteTypeInfo
fn type_info() -> SqliteTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SqliteTypeInfo) -> bool
fn compatible(ty: &SqliteTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl Eq for TransactionStatus
impl StructuralPartialEq for TransactionStatus
Auto Trait Implementations§
impl Freeze for TransactionStatus
impl RefUnwindSafe for TransactionStatus
impl Send for TransactionStatus
impl Sync for TransactionStatus
impl Unpin for TransactionStatus
impl UnsafeUnpin for TransactionStatus
impl UnwindSafe for TransactionStatus
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§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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.