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