Struct growthring::WALStoreAIO
source · pub struct WALStoreAIO { /* private fields */ }
Implementations§
source§impl WALStoreAIO
impl WALStoreAIO
pub fn new( wal_dir: &str, truncate: bool, rootfd: Option<BorrowedFd<'_>>, aiomgr: Option<AIOManager> ) -> Result<Self, ()>
Trait Implementations§
source§impl WALStore for WALStoreAIO
impl WALStore for WALStoreAIO
type FileNameIter = IntoIter<String>
source§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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Open a file given the filename, create the file if not exists when
touch
is true
.source§fn remove_file<'life0, 'async_trait>(
&'life0 self,
filename: String
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_file<'life0, 'async_trait>(
&'life0 self,
filename: String
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Unlink a file given the filename.
source§fn enumerate_files(&self) -> Result<Self::FileNameIter, ()>
fn enumerate_files(&self) -> Result<Self::FileNameIter, ()>
Enumerate all WAL filenames. It should include all WAL files that are previously opened
(created) but not removed. The list could be unordered.
impl Send for WALStoreAIO
Auto Trait Implementations§
impl !RefUnwindSafe for WALStoreAIO
impl !Sync for WALStoreAIO
impl Unpin for WALStoreAIO
impl !UnwindSafe for WALStoreAIO
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