Trait oasis_runtime_sdk::module::Module
source · pub trait Module {
type Error: Error + 'static;
type Event: Event + 'static;
type Parameters: Parameters + 'static;
const NAME: &'static str;
const VERSION: u32 = 1u32;
// Provided methods
fn params() -> Self::Parameters { ... }
fn set_params(params: Self::Parameters) { ... }
}
Expand description
A runtime module.
Required Associated Types§
sourcetype Parameters: Parameters + 'static
type Parameters: Parameters + 'static
Module parameters.
Required Associated Constants§
Provided Associated Constants§
Provided Methods§
sourcefn params() -> Self::Parameters
fn params() -> Self::Parameters
Return the module’s parameters.
sourcefn set_params(params: Self::Parameters)
fn set_params(params: Self::Parameters)
Set the module’s parameters.
Object Safety§
This trait is not object safe.