pub struct CursorTx<'a>(/* private fields */);
Expand description
Represents a cursor for navigating through the ThetaDB.
Implementations§
source§impl<'a> CursorTx<'a>
impl<'a> CursorTx<'a>
sourcepub fn key(&self) -> Result<Option<Vec<u8>>>
pub fn key(&self) -> Result<Option<Vec<u8>>>
Gets the key of the current record pointed by the cursor.
sourcepub fn value(&self) -> Result<Option<Vec<u8>>>
pub fn value(&self) -> Result<Option<Vec<u8>>>
Gets the value of the current record pointed by the cursor.
sourcepub fn key_value(&self) -> Result<Option<(Vec<u8>, Vec<u8>)>>
pub fn key_value(&self) -> Result<Option<(Vec<u8>, Vec<u8>)>>
Gets the key-value pair of the current record pointed by the cursor.
Auto Trait Implementations§
impl<'a> Freeze for CursorTx<'a>
impl<'a> RefUnwindSafe for CursorTx<'a>
impl<'a> !Send for CursorTx<'a>
impl<'a> Sync for CursorTx<'a>
impl<'a> Unpin for CursorTx<'a>
impl<'a> UnwindSafe for CursorTx<'a>
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