/// Performs a write within a transaction.
Performs a write within a transaction.
Performs a write within a transaction .
async fn write(&self, offset: u64, buf: BufferRef<'_>) -> Result<(), Error> {
        let mut transaction = Transaction::new();
        self.txn_write(&mut transaction, offset, buf).await?;
        self.commit_transaction(transaction).await;
        Ok(())
    }
async fn write ( & self , offset : u64 , buf : BufferRef < ' _ > ) -> Result < ( ) , Error > { let mut transaction = Transaction :: new ( ) ; self . txn_write ( & mut transaction , offset , buf ) . await ? ; self . commit_transaction ( transaction ) . await ; Ok ( ( ) ) }
Performs a write within a transaction.
Performs a write within a transaction .
&self
offset
u64
buf
BufferRef<'_>