[−][src]Enum tendermint::abci::Code
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
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]
fn cmp(&self, other: &Code) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Code> for Code
[src]
impl PartialOrd<Code> for Code
[src]
fn partial_cmp(&self, other: &Code) -> Option<Ordering>
[src]
fn lt(&self, other: &Code) -> bool
[src]
fn le(&self, other: &Code) -> bool
[src]
fn gt(&self, other: &Code) -> bool
[src]
fn ge(&self, other: &Code) -> bool
[src]
impl Debug for Code
[src]
impl Hash for Code
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Serialize for Code
[src]
impl<'de> Deserialize<'de> for Code
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Typeable for T where
T: Any,
T: Any,