pub struct Limits<'a> {
pub set: &'a Limits,
pub hash: &'a Limits,
pub list: &'a Limits,
pub zset: &'a Limits,
}Expand description
Where a load is allowed to put what it builds.
The four representation thresholds, borrowed rather than copied, because a
restore has to land in the same band the same data would have landed in had
it been written a command at a time. A hash restored into a listpack on a
server configured for tables would answer the wrong thing to OBJECT ENCODING and would be a different size for the rest of its life.
Fields§
§set: &'a Limitsset-max-intset-entries and the two listpack thresholds.
hash: &'a Limitshash-max-listpack-entries and hash-max-listpack-value.
list: &'a Limitslist-max-listpack-size, as bytes or as a count.
zset: &'a Limitszset-max-listpack-entries and zset-max-listpack-value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Limits<'a>
impl<'a> RefUnwindSafe for Limits<'a>
impl<'a> Send for Limits<'a>
impl<'a> Sync for Limits<'a>
impl<'a> Unpin for Limits<'a>
impl<'a> UnsafeUnpin for Limits<'a>
impl<'a> UnwindSafe for Limits<'a>
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