Trait bonsaidb::local::StorageNonBlocking[][src]

pub trait StorageNonBlocking {
    fn path(&self) -> &Path;
fn assume_session(&self, session: Session) -> Result<Self, Error>; }
Expand description

Functionality that is available on both Storage and AsyncStorage.

Required methods

Returns the path of the database storage.

Returns a new instance of Storage with session as the effective authentication session. This call will only succeed if there is no current session.