pub struct ValkeyAlloc;
Expand description
Defines the Valkey allocator. This allocator delegates the allocation and deallocation tasks to the Valkey server when available, otherwise it panics.
Trait Implementations§
Source§impl Clone for ValkeyAlloc
impl Clone for ValkeyAlloc
Source§fn clone(&self) -> ValkeyAlloc
fn clone(&self) -> ValkeyAlloc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl GlobalAlloc for ValkeyAlloc
impl GlobalAlloc for ValkeyAlloc
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout
. Read moreSource§unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
Behaves like
alloc
, but also ensures that the contents
are set to zero before being returned. Read moreimpl Copy for ValkeyAlloc
Auto Trait Implementations§
impl Freeze for ValkeyAlloc
impl RefUnwindSafe for ValkeyAlloc
impl Send for ValkeyAlloc
impl Sync for ValkeyAlloc
impl Unpin for ValkeyAlloc
impl UnwindSafe for ValkeyAlloc
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