Trait RuntimeError

Source
pub trait RuntimeError:
    RuntimeEnum
    + 'static
    + Into<DispatchError> { }
Expand description

Persistable, codec-safe runtime error convertible into [DispatchError].

Extends RuntimeEnum and 'static to ensure errors are represented as discrete named variants, fully owned, and safe to encode, decode, and store across deterministic execution boundaries.

The Into<DispatchError> bound enables seamless integration with FRAME dispatch logic while still allowing domain-specific error enumerations.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> RuntimeError for T
where T: RuntimeEnum + 'static + Into<DispatchError>,