Enum tmkms::tx_signer::last_tx::LastTx[][src]

pub enum LastTx {
    None,
    Response(Box<Response>),
    Error(Error),
}

State of the last broadcasted transaction

Variants

None

No previously broadcast transaction (i.e. starting up)

Response(Box<Response>)

Tendermint RPC response

Error(Error)

Error broadcasting the previous transaction

Implementations

impl LastTx[src]

pub fn response(&self) -> Option<&Response>[src]

Get the RPC response, if there was one

pub fn error(&self) -> Option<&Error>[src]

Get the RPC error, if there was one

pub fn is_none(&self) -> bool[src]

Was there no last TX?

pub fn is_response(&self) -> bool[src]

Was there a response from the last transaction broadcast?

pub fn is_error(&self) -> bool[src]

Was there an error broadcasting the last transaction?

Trait Implementations

impl Clone for LastTx[src]

impl Debug for LastTx[src]

impl Default for LastTx[src]

Auto Trait Implementations

impl RefUnwindSafe for LastTx

impl Send for LastTx

impl Sync for LastTx

impl Unpin for LastTx

impl UnwindSafe for LastTx

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any
[src]

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

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

impl<T> Conv for T

impl<T> FmtForward for T

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

impl<T> Instrument for T[src]

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

impl<D> OwoColorize for D

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

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>,