RuntimeEnv

Trait RuntimeEnv 

pub trait RuntimeEnv:
    Send
    + Sync
    + Clone {
    // Required methods
    fn set_chain_pos(&self, pos: ChainPos);
    fn get_chain_pos(&self) -> ChainPos;
    fn inter_ops(&self) -> Option<&InterOps>;
    fn get_lyquid_id(&self) -> LyquidID;
    fn get_node_id(&self) -> NodeID;
}

Required Methods§

fn set_chain_pos(&self, pos: ChainPos)

fn get_chain_pos(&self) -> ChainPos

fn inter_ops(&self) -> Option<&InterOps>

fn get_lyquid_id(&self) -> LyquidID

fn get_node_id(&self) -> NodeID

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.

Implementations on Foreign Types§

§

impl RuntimeEnv for ()

§

fn set_chain_pos(&self, _: ChainPos)

§

fn get_chain_pos(&self) -> ChainPos

§

fn inter_ops(&self) -> Option<&InterOps>

§

fn get_lyquid_id(&self) -> LyquidID

§

fn get_node_id(&self) -> NodeID

Implementors§

§

impl RuntimeEnv for Env