pub async fn timeout<T, Fut>( duration: Duration, operation: Fut, ) -> Result<T, Elapsed>where Fut: Future<Output = T>,
Runs an async operation with a hard deadline.