pub enum Find {
Range {
last: i32,
step: u32,
limit: u32,
},
Counted {
count: u32,
first: u32,
step: u32,
},
Unknown,
}Expand description
How far a run of keys goes.
Variants§
Range
A fixed run, counting from the start of it.
last is relative: nought is one key, and a negative number counts back
from the last argument. limit is nought except where the run is one
part of what is left, which is XREAD splitting the tail into keys and
ids.
Fields
Counted
A run whose length is a number in the arguments.
count is where that number is, measured from the start of the run, and
first is where the keys begin from the same place.
Fields
Unknown
A run only the command itself can work out.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Find
impl RefUnwindSafe for Find
impl Send for Find
impl Sync for Find
impl Unpin for Find
impl UnsafeUnpin for Find
impl UnwindSafe for Find
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more