pub trait InspectTimeoutExt<Fut, F, T>{
// Required method
fn inspect_timeout(
self,
dur: Duration,
elapse_fn: F,
) -> InspectTimeout<Fut, F, T> ⓘ;
}
Required Methods§
Sourcefn 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 time