Trait bonsaidb::local::StorageNonBlocking
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§
fn 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.