[−][src]Trait growthring::wal::WALStore
Associated Types
type FileNameIter: Iterator<Item = String>
[src]
Required methods
#[must_use]pub fn open_file<'life0, 'life1, 'async_trait>(
&'life0 self,
filename: &'life1 str,
touch: bool
) -> Pin<Box<dyn Future<Output = Result<Box<dyn WALFile>, ()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
filename: &'life1 str,
touch: bool
) -> Pin<Box<dyn Future<Output = Result<Box<dyn WALFile>, ()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Open a file given the filename, create the file if not exists when touch
is true
.
#[must_use]pub fn remove_file<'life0, 'async_trait>(
&'life0 self,
filename: String
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
filename: String
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Unlink a file given the filename.
pub fn enumerate_files(&self) -> Result<Self::FileNameIter, ()>
[src]
Enumerate all WAL filenames. It should include all WAL files that are previously opened (created) but not removed. The list could be unordered.
Implementors
impl WALStore for WALStoreAIO
[src]
type FileNameIter = IntoIter<String>
pub fn open_file<'life0, 'life1, 'async_trait>(
&'life0 self,
filename: &'life1 str,
_touch: bool
) -> Pin<Box<dyn Future<Output = Result<Box<dyn WALFile>, ()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
filename: &'life1 str,
_touch: bool
) -> Pin<Box<dyn Future<Output = Result<Box<dyn WALFile>, ()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn remove_file<'life0, 'async_trait>(
&'life0 self,
filename: String
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
filename: String
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,