returns Err(blocking)
(&self)
| 1069 | |
| 1070 | /// returns Err(blocking) |
| 1071 | pub fn get_timeout(&self) -> Result<Duration, bool> { |
| 1072 | let timeout = self.timeout.load(); |
| 1073 | if timeout > 0.0 { |
| 1074 | Ok(Duration::from_secs_f64(timeout)) |
| 1075 | } else { |
| 1076 | Err(timeout != 0.0) |
| 1077 | } |
| 1078 | } |
| 1079 | |
| 1080 | fn sock_op<F, R>( |
| 1081 | &self, |
no test coverage detected