Problem with "duplicating" a (Tcp)Stream and lifetimes

You're right. The only alternative is async Rust for which asynchronous runtimes such as Tokio provide general techniques that let you apply a timeout to any operation.

1 Like