pub struct MeteredFuture<F> { /* private fields */ }
Expand description
Future that tracks its execution with FutureTracker
and reports it back when done
to FuturesMetrics
.
Implementations§
source§impl<F> MeteredFuture<F>
impl<F> MeteredFuture<F>
sourcepub fn new(future: F, metrics: FuturesMetrics) -> Self
pub fn new(future: F, metrics: FuturesMetrics) -> Self
Create a new MeteredFuture
with the given future and metrics.
Trait Implementations§
source§impl<F: Clone> Clone for MeteredFuture<F>
impl<F: Clone> Clone for MeteredFuture<F>
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<F: Debug> Debug for MeteredFuture<F>
impl<F: Debug> Debug for MeteredFuture<F>
source§impl<F> Future for MeteredFuture<F>where
F: Future,
impl<F> Future for MeteredFuture<F>where
F: Future,
impl<'__pin, F> Unpin for MeteredFuture<F>where
__Origin<'__pin, F>: Unpin,
Auto Trait Implementations§
impl<F> Freeze for MeteredFuture<F>where
F: Freeze,
impl<F> RefUnwindSafe for MeteredFuture<F>where
F: RefUnwindSafe,
impl<F> Send for MeteredFuture<F>where
F: Send,
impl<F> Sync for MeteredFuture<F>where
F: Sync,
impl<F> UnwindSafe for MeteredFuture<F>where
F: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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