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§
Sourcefn duplicate_item() -> Self
fn duplicate_item() -> Self
Program already exists in storage.
Sourcefn program_not_found() -> Self
fn program_not_found() -> Self
Program is not found in the storage.
Sourcefn not_active_program() -> Self
fn not_active_program() -> Self
Program is not an instance of ActiveProgram.
Sourcefn cannot_find_page_data() -> Self
fn cannot_find_page_data() -> Self
There is no data for specified program_id
and page
.
Sourcefn program_code_not_found() -> Self
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.