Expand description
DataBase Module
Fields
path: String
node: Db
users: BTreeMap<Vec<u8>, Db>
Implementations
sourceimpl DataBase
impl DataBase
sourcepub fn get_node_db() -> Db
pub fn get_node_db() -> Db
get node DB
sourcepub fn get_user_db(account_id: PeerId) -> Db
pub fn get_user_db(account_id: PeerId) -> Db
get a user account data base
Each user account has an own storage folder with a data base. The data base is opened on request.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DataBase
impl Send for DataBase
impl Sync for DataBase
impl Unpin for DataBase
impl !UnwindSafe for DataBase
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