diff options
Diffstat (limited to '')
| -rw-r--r-- | src/bin/client/connection.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/client/connection.rs b/src/bin/client/connection.rs index 6459de5..363a2a9 100644 --- a/src/bin/client/connection.rs +++ b/src/bin/client/connection.rs | |||
| @@ -125,6 +125,11 @@ impl TlsStream { | |||
| 125 | self.inner.write_line(msg) | 125 | self.inner.write_line(msg) |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | /// One line if the socket already has one, without blocking. | ||
| 129 | pub fn read_available_line(&mut self) -> std::io::Result<Option<String>> { | ||
| 130 | self.inner.read_available_line() | ||
| 131 | } | ||
| 132 | |||
| 128 | pub fn set_read_timeout( | 133 | pub fn set_read_timeout( |
| 129 | &self, | 134 | &self, |
| 130 | duration: Option<std::time::Duration>, | 135 | duration: Option<std::time::Duration>, |
