pub struct SkdbMemAlloc;
Expand description
§In-Memory Allocator
For a redis-like database for caching, testing the database, etc. Lives only on the heap and gets wiped on program exit.
Trait Implementations§
Source§impl<'a> Allocator<'a> for SkdbMemAlloc
impl<'a> Allocator<'a> for SkdbMemAlloc
Source§fn load_layers(&self) -> Result<Vec<Layer<'a, Self::LayerStream>>, Error>
fn load_layers(&self) -> Result<Vec<Layer<'a, Self::LayerStream>>, Error>
Loads all the read-only layers in the database as
Layers
Auto Trait Implementations§
impl Freeze for SkdbMemAlloc
impl RefUnwindSafe for SkdbMemAlloc
impl Send for SkdbMemAlloc
impl Sync for SkdbMemAlloc
impl Unpin for SkdbMemAlloc
impl UnwindSafe for SkdbMemAlloc
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