Welcome messages

This commit is contained in:
ChristianVisintin
2020-12-04 14:00:23 +01:00
parent 809b3b8d99
commit 82a19dd089
4 changed files with 15 additions and 6 deletions

View File

@@ -127,6 +127,7 @@ pub trait FileTransfer {
/// ### connect
///
/// Connect to the remote server
/// Can return banner / welcome message on success
fn connect(
&mut self,
@@ -134,7 +135,7 @@ pub trait FileTransfer {
port: u16,
username: Option<String>,
password: Option<String>,
) -> Result<(), FileTransferError>;
) -> Result<Option<String>, FileTransferError>;
/// ### disconnect
///