Trait janki::dummy_storage::DynStorage
source · [−]pub trait DynStorage<E: Debug> {
fn read_custom(&mut self, s: &dyn Storage<ErrorType = E>) -> Result<(), E>;
fn write_custom(
&mut self,
s: &mut dyn Storage<ErrorType = E>
) -> Result<(), E>;
fn exit_custom(&mut self, s: &mut dyn Storage<ErrorType = E>);
}
Expand description
Trait for Storage
that implements methods that take dyn
trait objects over owned self
s.
Required Methods
fn read_custom(&mut self, s: &dyn Storage<ErrorType = E>) -> Result<(), E>
fn read_custom(&mut self, s: &dyn Storage<ErrorType = E>) -> Result<(), E>
Reads the database from S
and sets the owned database from &mut self
to that read in database.
fn write_custom(&mut self, s: &mut dyn Storage<ErrorType = E>) -> Result<(), E>
fn write_custom(&mut self, s: &mut dyn Storage<ErrorType = E>) -> Result<(), E>
Writes the owned database to S
fn exit_custom(&mut self, s: &mut dyn Storage<ErrorType = E>)
fn exit_custom(&mut self, s: &mut dyn Storage<ErrorType = E>)
Exits the application