pub struct Scratch { /* private fields */ }Expand description
A place to build a directory, owned by the shard and used again every time.
Y7 says a command path does not allocate, and a chain of the largest value Redis takes has a 64 KiB directory that has to be laid out somewhere before it is written. So the shard keeps one of these and hands it in.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scratch
impl RefUnwindSafe for Scratch
impl Send for Scratch
impl Sync for Scratch
impl Unpin for Scratch
impl UnsafeUnpin for Scratch
impl UnwindSafe for Scratch
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