pub struct RedisAlloc;
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 RedisAlloc
impl Clone for RedisAlloc
Source§fn clone(&self) -> RedisAlloc
fn clone(&self) -> RedisAlloc
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 RedisAlloc
impl GlobalAlloc for RedisAlloc
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 moreimpl Copy for RedisAlloc
Auto Trait Implementations§
impl Freeze for RedisAlloc
impl RefUnwindSafe for RedisAlloc
impl Send for RedisAlloc
impl Sync for RedisAlloc
impl Unpin for RedisAlloc
impl UnwindSafe for RedisAlloc
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