pub struct ScanArgs {
pub cursor: u64,
pub count: usize,
pub pattern: Option<Vec<u8>>,
pub type_filter: Option<Vec<u8>>,
}Expand description
Parsed SCAN arguments carried by Route::Scan.
cursor is the raw wire cursor: the runtime splits it into
(shard, in-shard position) — shard index in the top 10 bits,
reverse-binary bucket cursor in the low 54 (see exec_scan for the
documented limits). Cursors are therefore only meaningful on the
server (and shard count) that issued them, like Redis Cluster
cursors are per-node.
Fields§
§cursor: u64Raw wire cursor (0 starts a sweep).
count: usizeCOUNT — buckets-visited work bound per call (default 10).
pattern: Option<Vec<u8>>MATCH glob, applied to each visited key.
type_filter: Option<Vec<u8>>TYPE — keep only keys whose value type name matches
(case-insensitive; unknown names match nothing).
Trait Implementations§
impl Eq for ScanArgs
impl StructuralPartialEq for ScanArgs
Auto Trait Implementations§
impl Freeze for ScanArgs
impl RefUnwindSafe for ScanArgs
impl Send for ScanArgs
impl Sync for ScanArgs
impl Unpin for ScanArgs
impl UnsafeUnpin for ScanArgs
impl UnwindSafe for ScanArgs
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