From 1d220c2116cec5a00c41b74a5de5c7a79ada640c Mon Sep 17 00:00:00 2001 From: Dan Burkert Date: Sun, 21 Dec 2014 18:30:46 -0800 Subject: [PATCH] add more docs --- src/transaction.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/transaction.rs b/src/transaction.rs index 8e5a36c..bd8bd85 100644 --- a/src/transaction.rs +++ b/src/transaction.rs @@ -146,6 +146,7 @@ impl <'env> Transaction<'env> for RoTransaction<'env> { } } +/// An inactive read-only transaction. pub struct InactiveTransaction<'env> { txn: *mut ffi::MDB_txn, _no_sync: marker::NoSync, @@ -162,6 +163,7 @@ impl <'env> Drop for InactiveTransaction<'env> { impl <'env> InactiveTransaction<'env> { + /// Renews the inactive transaction and returns the active read-only transaction. pub fn renew(self) -> LmdbResult> { let txn = self.txn; unsafe {