gear_common::program_storage

Trait Error

Source
pub trait Error {
    // Required methods
    fn duplicate_item() -> Self;
    fn program_not_found() -> Self;
    fn not_active_program() -> Self;
    fn cannot_find_page_data() -> Self;
    fn program_code_not_found() -> Self;
}
Expand description

Trait for ProgramStorage errors.

Contains constructors for all existing errors.

Required Methods§

Source

fn duplicate_item() -> Self

Program already exists in storage.

Source

fn program_not_found() -> Self

Program is not found in the storage.

Source

fn not_active_program() -> Self

Program is not an instance of ActiveProgram.

Source

fn cannot_find_page_data() -> Self

There is no data for specified program_id and page.

Source

fn program_code_not_found() -> Self

Failed to find the program binary code.

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§