pub trait Store<S> {
// Required methods
fn with<R, F>(&self, act: F) -> Result<R>
where F: FnOnce(&mut S) -> Result<R>;
fn snapshot(&self) -> Result<S>;
}Expand description
A provider’s state, however it is kept.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".