Struct fdb_rl::cursor::key_value_cursor::KeyValueCursor
source · pub struct KeyValueCursor {
subspace_length: usize,
fdb_stream_keyvalue: FdbStreamKeyValue,
limit_manager: LimitManager,
values_limit: i32,
continuation: KeyValueContinuationInternal,
values_seen: i32,
error: Option<CursorError>,
}
Expand description
The basic cursor for scanning ranges of the FDB database.
Fields§
§subspace_length: usize
§fdb_stream_keyvalue: FdbStreamKeyValue
§limit_manager: LimitManager
§values_limit: i32
§continuation: KeyValueContinuationInternal
§values_seen: i32
§error: Option<CursorError>
Implementations§
source§impl KeyValueCursor
impl KeyValueCursor
sourcefn new(
subspace_length: usize,
fdb_stream_keyvalue: FdbStreamKeyValue,
limit_manager: LimitManager,
values_limit: i32,
continuation: KeyValueContinuationInternal
) -> KeyValueCursor
fn new( subspace_length: usize, fdb_stream_keyvalue: FdbStreamKeyValue, limit_manager: LimitManager, values_limit: i32, continuation: KeyValueContinuationInternal ) -> KeyValueCursor
Create a new KeyValueCursor
.
sourcepub async fn into_btreemap(self) -> (BTreeMap<Key, Value>, CursorError)
pub async fn into_btreemap(self) -> (BTreeMap<Key, Value>, CursorError)
Trait Implementations§
source§impl Cursor<KeyValue> for KeyValueCursor
impl Cursor<KeyValue> for KeyValueCursor
source§async fn next(&mut self) -> CursorResult<KeyValue>
async fn next(&mut self) -> CursorResult<KeyValue>
Asynchronously return the next result from this cursor.
source§fn collect(self) -> impl Future<Output = (Vec<T>, CursorError)> + Sendwhere
Self: Sized + Send,
fn collect(self) -> impl Future<Output = (Vec<T>, CursorError)> + Sendwhere Self: Sized + Send,
Drain the cursor pushing all emitted values into a collection.
source§impl Debug for KeyValueCursor
impl Debug for KeyValueCursor
impl Sealed for KeyValueCursor
Auto Trait Implementations§
impl !RefUnwindSafe for KeyValueCursor
impl Send for KeyValueCursor
impl Sync for KeyValueCursor
impl Unpin for KeyValueCursor
impl !UnwindSafe for KeyValueCursor
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