Add support for Tokio (async)

This commit is contained in:
Aram 🍐 2021-07-31 12:24:11 -04:00
parent 36202d9f1f
commit 5550963ae9
8 changed files with 547 additions and 3 deletions

View file

@ -135,7 +135,7 @@ impl TcpConnection {
}
#[cfg(not(feature = "ssl"))]
fn enable_ssl(mut self) -> crate::Result<Self> {
fn enable_ssl(self) -> crate::Result<Self> {
Ok(self)
}
@ -185,6 +185,7 @@ impl TcpConnection {
self.read_response()?.expect_var()
}
#[allow(dead_code)]
fn get_network_version(&mut self) -> crate::Result<String> {
self.write_cmd(Command::NetworkVersion)?;
self.read_plain_response()