is_connected method

This commit is contained in:
ChristianVisintin
2020-11-21 17:37:49 +01:00
parent 2d29dfeb33
commit 056f8c7c7f
2 changed files with 16 additions and 0 deletions

View File

@@ -80,6 +80,11 @@ pub trait FileTransfer {
fn disconnect(&mut self) -> Result<(), FileTransferError>;
/// ### is_connected
///
/// Indicates whether the client is connected to remote
fn is_connected(&self) -> bool;
/// ### pwd
///
/// Print working directory