pub trait RunStore {
// Required methods
fn save(&mut self, run: &Run) -> Result<(), String>;
fn put_pending(&mut self, run_id: &str, value: &str) -> Result<(), String>;
fn pending(&self, run_id: &str) -> Option<String>;
fn clear_pending(&mut self, run_id: &str) -> Result<(), String>;
}Expand description
Where runs and pending values are kept between steps.
Required Methods§
fn save(&mut self, run: &Run) -> Result<(), String>
Sourcefn put_pending(&mut self, run_id: &str, value: &str) -> Result<(), String>
fn put_pending(&mut self, run_id: &str, value: &str) -> Result<(), String>
A value chosen by the client, stored before the issuer is told (rule 2).
fn pending(&self, run_id: &str) -> Option<String>
fn clear_pending(&mut self, run_id: &str) -> Result<(), String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".