pub struct Cursor(/* private fields */);Expand description
How far a scan has got, and the number the client holds between calls.
It is a position in the keyspace and not a position in memory. Two calls a week apart with the same cursor resume at the same place, even if every segment in the index has split in between.
Implementations§
Source§impl Cursor
impl Cursor
Sourcepub const fn from_raw(raw: u64) -> Cursor
pub const fn from_raw(raw: u64) -> Cursor
The cursor a client sent, whatever it sent.
Any number is a valid cursor. A made up one resumes somewhere arbitrary and answers keys from there, which is what Redis does and is the only behaviour that does not require the server to remember every cursor it has ever handed out.
Trait Implementations§
impl Copy for Cursor
impl Eq for Cursor
Source§impl Ord for Cursor
impl Ord for Cursor
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Cursor
impl PartialOrd for Cursor
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnsafeUnpin for Cursor
impl UnwindSafe for Cursor
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