async fn write_within<T, F>(bound: Duration, write: F) -> Result<T>where F: Future<Output = Result<T>>,
Wait on one socket write under bound, failing as WriteStalled when it does not complete in time.
bound
WriteStalled