Trait odra_core::module::Module

source ·
pub trait Module {
    // Required methods
    fn new(env: Rc<ContractEnv>) -> Self;
    fn env(&self) -> Rc<ContractEnv>;
}
Expand description

Represents a module in the Odra system.

Required Methods§

source

fn new(env: Rc<ContractEnv>) -> Self

Creates a new instance of the module with the given contract environment.

source

fn env(&self) -> Rc<ContractEnv>

Returns the contract environment associated with the module.

Object Safety§

This trait is not object safe.

Implementors§