Struct valkey_module::alloc::ValkeyAlloc
source · pub struct ValkeyAlloc;Expand description
Defines the Redis allocator. This allocator delegates the allocation and deallocation tasks to the Redis 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 copy 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
Allocate memory as described by the given
layout. 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