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
PinnedFieldsOf<__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§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