pub trait PhaseContext {
// Required methods
fn phase(&self) -> Phase;
fn thread_id(&self) -> &str;
fn messages(&self) -> &[Arc<Message>];
fn run_policy(&self) -> &RunPolicy;
fn run_identity(&self) -> &RunIdentity;
fn state_of<T: State>(&self) -> T::Ref<'_>;
fn snapshot(&self) -> Value;
}Expand description
Shared read access available to all phase contexts.
Required Methods§
fn phase(&self) -> Phase
fn thread_id(&self) -> &str
fn messages(&self) -> &[Arc<Message>]
fn run_policy(&self) -> &RunPolicy
fn run_identity(&self) -> &RunIdentity
fn state_of<T: State>(&self) -> T::Ref<'_>
fn snapshot(&self) -> Value
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.