pub struct Storage {}
Expand description
storage module structure
Implementations
sourceimpl Storage
impl Storage
sourcepub fn init(path: String)
pub fn init(path: String)
initialize storage module requires the path to the data storage folder
sourcepub fn get_path() -> String
pub fn get_path() -> String
get data storage path
This will return the absolute path to the storage folder as a string, without a trailing slash.
e.g. on Linux: /home/USERNAME/.config/qaul
sourcepub fn get_account_path(account_id: PeerId) -> PathBuf
pub fn get_account_path(account_id: PeerId) -> PathBuf
get data storage path for user account
Auto Trait Implementations
impl RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnwindSafe for Storage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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