Skip to main content

RunStore

Trait RunStore 

Source
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§

Source

fn save(&mut self, run: &Run) -> Result<(), String>

Source

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).

Source

fn pending(&self, run_id: &str) -> Option<String>

Source

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".

Implementors§