pub enum Encoding {
Listpack,
Skiplist,
}Expand description
Which of the two a sorted set is in, which is what OBJECT ENCODING reports.
Variants§
Listpack
One packed blob, walked linearly.
Skiplist
The element table and the tree.
The name is Redis’s and the structure is not. 12 section 2 records the
divergence: OBJECT ENCODING returns a name clients test for, not a
claim about what is underneath, and answering with a word no client has
heard of breaks tools for nothing.
Implementations§
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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