[−][src]Function splinter::storage::get_storage
pub fn get_storage<'a, T: Sized + Serialize + DeserializeOwned + 'a, F: Fn() -> T>(
location: &str,
default: F
) -> Result<Box<dyn Storage<S = T> + 'a>, String>
Given a location string, returns the appropriate storage
Accepts "memory"
or "disk+/path/to/file"
as location values