pub trait ErrorExt: Sealed {
// Required method
fn decode_error(&self, data: &[u8]) -> Result<DecodedError, Error>;
}Available on crate feature
dyn-abi only.Expand description
Provides error encoding and decoding for the Error type.
Required Methods§
Sourcefn decode_error(&self, data: &[u8]) -> Result<DecodedError, Error>
fn decode_error(&self, data: &[u8]) -> Result<DecodedError, Error>
Decode the error from the given data.