1 2 3 4 5 6 7 8 9 10 11 12
/// A trait for accessing state values pub trait ContextState { /// Get a reference to a state value fn get<T>(&self) -> Option<&T> where T: Send + Sync + 'static; /// Set a state value fn set<T>(&self, value: T) -> bool where T: Send + Sync + 'static; }