Trait bonsaidb_local::StorageNonBlocking
source · pub trait StorageNonBlocking: Sized {
// Required methods
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§
sourcefn assume_session(&self, session: Session) -> Result<Self, Error>
fn assume_session(&self, session: Session) -> Result<Self, Error>
Returns a new instance of Storage
with session
as the effective
authentication session. This call will only succeed if there is no
current session.
Object Safety§
This trait is not object safe.