pub struct InspectTimeout<Fut, F, T> { /* private fields */ }
Expand description
A Future
combinator that applies a timeout with a custom callback when the timeout elapses
Implementations§
Trait Implementations§
Source§impl<Fut, F, T> Future for InspectTimeout<Fut, F, T>
impl<Fut, F, T> Future for InspectTimeout<Fut, F, T>
impl<'pin, Fut, F, T> Unpin for InspectTimeout<Fut, F, T>where
PinnedFieldsOf<__InspectTimeout<'pin, Fut, F, T>>: Unpin,
Auto Trait Implementations§
impl<Fut, F, T> !Freeze for InspectTimeout<Fut, F, T>
impl<Fut, F, T> !RefUnwindSafe for InspectTimeout<Fut, F, T>
impl<Fut, F, T> Send for InspectTimeout<Fut, F, T>
impl<Fut, F, T> Sync for InspectTimeout<Fut, F, T>
impl<Fut, F, T> !UnwindSafe for InspectTimeout<Fut, F, T>
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<Fut, F, T> InspectTimeoutExt<Fut, F, T> for Fut
impl<Fut, F, T> InspectTimeoutExt<Fut, F, T> for Fut
Source§fn inspect_timeout(
self,
dur: Duration,
elapse_fn: F,
) -> InspectTimeout<Fut, F, T> ⓘ
fn inspect_timeout( self, dur: Duration, elapse_fn: F, ) -> InspectTimeout<Fut, F, T> ⓘ
Set a callback in case the
Future
does not complete within a specified period of timeSource§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