zabi/
result.rs

1//! Abi results
2#![cfg(feature = "hex")]
3
4/// ABI error
5#[derive(Debug, thiserror::Error)]
6pub enum Error {
7    /// Failed to encode or decode with postcard.
8    #[error(transparent)]
9    Postcard(#[from] postcard::Error),
10    /// Failed to decode from hex.
11    #[error(transparent)]
12    Hex(#[from] hex::FromHexError),
13}
14
15/// ABI result
16pub type Result<T> = std::result::Result<T, Error>;