Struct ckb_jsonrpc_types::TxStatus[][src]

pub struct TxStatus {
    pub status: Status,
    pub block_hash: Option<H256>,
}

Transaction status and the block hash if it is committed.

Fields

status: Status

The transaction status, allowed values: "pending", "proposed" and "committed".

block_hash: Option<H256>

The block hash of the block which has committed this transaction in the canonical chain.

Implementations

impl TxStatus[src]

pub fn pending() -> Self[src]

Pending transaction which is in the memory pool and must be proposed first.

pub fn proposed() -> Self[src]

Transaction which has been proposed but not committed yet.

pub fn committed(hash: H256) -> Self[src]

Transaction which has already been commited.

Params

  • hash - the block hash in which the transaction is committed.

Trait Implementations

impl Clone for TxStatus[src]

impl Debug for TxStatus[src]

impl<'de> Deserialize<'de> for TxStatus[src]

impl Eq for TxStatus[src]

impl Hash for TxStatus[src]

impl PartialEq<TxStatus> for TxStatus[src]

impl Serialize for TxStatus[src]

impl StructuralEq for TxStatus[src]

impl StructuralPartialEq for TxStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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