[][src]Enum tendermint::abci::Code

pub enum Code {
    Ok,
    Err(u32),
}

ABCI application response codes.

These presently use 0 for success and non-zero for errors:

https://tendermint.com/docs/spec/abci/abci.html#errors

Note that in the future there may potentially be non-zero success codes.

Variants

Ok

Success

Err(u32)

Error codes

Methods

impl Code[src]

pub fn is_ok(self) -> bool[src]

Was the response OK?

pub fn is_err(self) -> bool[src]

Was the response an error?

pub fn value(self) -> u32[src]

Get the integer error value for this code

Trait Implementations

impl From<u32> for Code[src]

impl From<Code> for u32[src]

impl Clone for Code[src]

impl Copy for Code[src]

impl Eq for Code[src]

impl Ord for Code[src]

impl PartialEq<Code> for Code[src]

impl PartialOrd<Code> for Code[src]

impl Debug for Code[src]

impl Hash for Code[src]

impl Serialize for Code[src]

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

Auto Trait Implementations

impl Send for Code

impl Sync for Code

impl Unpin for Code

impl UnwindSafe for Code

impl RefUnwindSafe for Code

Blanket Implementations

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

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> Typeable for T where
    T: Any