Trait brane_exe::spec::CustomLocalState

source ·
pub trait CustomLocalState:
    'static
    + Send
    + Sync
    + Clone {
    // Required method
    fn new(global: &Arc<RwLock<impl CustomGlobalState>>) -> Self;
}
Expand description

Defines whatever is needed for the custom local part of a RunState.

Required Methods§

source

fn new(global: &Arc<RwLock<impl CustomGlobalState>>) -> Self

Constructs a new CustomLocalState from the given global state.

§Arguments
  • global: The global state to create this state from.
§Returns

A new instance of Self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CustomLocalState for ()

source§

fn new(_global: &Arc<RwLock<impl CustomGlobalState>>) -> Self

Implementors§