pub trait Error: AbiEncode {
}Expand description
A marker for error types.
Error types are types whose instances can be arguments to the panic instruction.
[Error] is automatically implemented for:
- unit type
(), - string slices,
- and enums annotated with the
#[error_type]attribute.