pub struct RetryAlloc<T: GlobalAlloc = System> { /* private fields */ }
Implementations§
Source§impl<T: GlobalAlloc> RetryAlloc<T>
impl<T: GlobalAlloc> RetryAlloc<T>
pub const fn with_config(alloc: T, config: RetryConfig) -> Self
pub const fn new(alloc: T) -> Self
pub fn inner(&self) -> &T
pub fn number_of_retries(&self) -> u64
Trait Implementations§
Source§impl<T: GlobalAlloc> GlobalAlloc for &RetryAlloc<T>
impl<T: GlobalAlloc> GlobalAlloc for &RetryAlloc<T>
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§impl<T: GlobalAlloc> GlobalAlloc for RetryAlloc<T>
impl<T: GlobalAlloc> GlobalAlloc for RetryAlloc<T>
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 moreAuto Trait Implementations§
impl<T = System> !Freeze for RetryAlloc<T>
impl<T> RefUnwindSafe for RetryAlloc<T>where
T: RefUnwindSafe,
impl<T> Send for RetryAlloc<T>where
T: Send,
impl<T> Sync for RetryAlloc<T>where
T: Sync,
impl<T> Unpin for RetryAlloc<T>where
T: Unpin,
impl<T> UnwindSafe for RetryAlloc<T>where
T: UnwindSafe,
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