Revertible

Trait Revertible 

Source
pub trait Revertible {
    // Required method
    fn revert<E: Into<OdraError>>(&self, error: E) -> !;
}
Expand description

Represents a component that can revert the contract execution.

Required Methods§

Source

fn revert<E: Into<OdraError>>(&self, error: E) -> !

Reverts the contract execution with the given error.

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§