pub struct TraceAllocator<T> { /* private fields */ }
Trait Implementations§
Source§impl<T: Future> Future for TraceAllocator<T>
impl<T: Future> Future for TraceAllocator<T>
impl<'__pin, T> Unpin for TraceAllocator<T>where
__Origin<'__pin, T>: Unpin,
Auto Trait Implementations§
impl<T> Freeze for TraceAllocator<T>where
T: Freeze,
impl<T> RefUnwindSafe for TraceAllocator<T>where
T: RefUnwindSafe,
impl<T> Send for TraceAllocator<T>where
T: Send,
impl<T> Sync for TraceAllocator<T>where
T: Sync,
impl<T> UnwindSafe for TraceAllocator<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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more
Source§impl<T, O> TraceAlloc for Twhere
T: Future<Output = O>,
impl<T, O> TraceAlloc for Twhere
T: Future<Output = O>,
Source§fn count_allocations(self) -> TraceAllocator<Self> ⓘ
fn count_allocations(self) -> TraceAllocator<Self> ⓘ
Wraps the future and returns a new one that will resolve
to
(max allocations, future result)
Read more