pub trait PowerCutRig {
// Required methods
fn storage(&mut self) -> &mut dyn Storage;
fn cut_after(&mut self, ops: u32);
fn restart(&mut self);
}Expand description
A Storage over a fake of its medium, which can lose the power: what
a backend writes to run power_cut_suite.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".