[][src]Trait growthring::wal::WALStore

pub trait WALStore {
    type FileNameIter: Iterator<Item = String>;
#[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
;
#[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
;
pub fn enumerate_files(&self) -> Result<Self::FileNameIter, ()>; }

Associated Types

Loading content...

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]

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]

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.

Loading content...

Implementors

impl WALStore for WALStoreAIO[src]

type FileNameIter = IntoIter<String>

Loading content...