pub trait SetTimeout { // Required method fn set_timeout(&mut self, timeout: Option<Duration>) -> Result<()>; }
A trait providing a set_timeout function for streams
set_timeout
Set the timeout for reads and writes on the current object