mirror of
https://github.com/aramperes/nut-rs.git
synced 2025-09-09 05:28:31 -04:00
parent
36202d9f1f
commit
5c9923d000
8 changed files with 547 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue