pub struct DataStore {
pub root: PathBuf,
}
Fields
root: PathBuf
Implementations
sourceimpl DataStore
impl DataStore
pub fn init(dir: &str)
pub fn new() -> DataStore
pub fn globals() -> DataObject
pub fn gc()
pub fn lookup_cmd_id(&self, lib: &str, ctl: &str, cmd: &str) -> String
pub fn set_data(&self, db: &str, id: &str, data: DataObject)
pub fn get_data(&self, db: &str, id: &str) -> DataObject
pub fn exists(&self, db: &str, id: &str) -> bool
pub fn get_data_file(&self, db: &str, id: &str) -> PathBuf
pub fn read_file(&self, path: PathBuf) -> String
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DataStore
impl Send for DataStore
impl Sync for DataStore
impl Unpin for DataStore
impl UnwindSafe for DataStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more