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 sequencer(&self) -> Option<&Sequencer>;
    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 sequencer(&self) -> Option<&Sequencer>

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.

Implementors§

§

impl RuntimeEnv for Env