Struct growthring::WALFileAIO
source · pub struct WALFileAIO { /* private fields */ }
Implementations§
source§impl WALFileAIO
impl WALFileAIO
pub fn new( rootfd: BorrowedFd<'_>, filename: &str, aiomgr: Arc<AIOManager> ) -> Result<Self, ()>
Trait Implementations§
source§impl WALFile for WALFileAIO
impl WALFile for WALFileAIO
source§fn allocate<'life0, 'async_trait>(
&'life0 self,
offset: WALPos,
length: usize
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn allocate<'life0, 'async_trait>(
&'life0 self,
offset: WALPos,
length: usize
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initialize the file space in [offset, offset + length) to zero.
source§fn write<'life0, 'async_trait>(
&'life0 self,
offset: WALPos,
data: WALBytes
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn write<'life0, 'async_trait>(
&'life0 self,
offset: WALPos,
data: WALBytes
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Write data with offset. We assume all previous
allocate
/truncate
invocations are visible
if ordered earlier (should be guaranteed by most OS). Additionally, the write caused
by each invocation of this function should be atomic (the entire single write should be
all or nothing).Auto Trait Implementations§
impl !RefUnwindSafe for WALFileAIO
impl !Send for WALFileAIO
impl !Sync for WALFileAIO
impl Unpin for WALFileAIO
impl !UnwindSafe for WALFileAIO
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