pub struct FileSystemDatabase { /* private fields */ }Implementations§
Source§impl FileSystemDatabase
impl FileSystemDatabase
pub fn new(path: String) -> FileSystemDatabase
Trait Implementations§
Source§impl Database for FileSystemDatabase
impl Database for FileSystemDatabase
type Error = FileSystemDatabaseError
fn set_state<'life0, 'life1, 'async_trait>(
&'life0 mut self,
state: &'life1 PersistentState,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<PersistentState>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear_state<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for FileSystemDatabase
impl RefUnwindSafe for FileSystemDatabase
impl Send for FileSystemDatabase
impl Sync for FileSystemDatabase
impl Unpin for FileSystemDatabase
impl UnwindSafe for FileSystemDatabase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more