Ftptransfer tests

This commit is contained in:
ChristianVisintin
2020-12-03 17:10:48 +01:00
parent 31f33dff48
commit f351ee1aea
3 changed files with 255 additions and 60 deletions

View File

@@ -45,7 +45,7 @@ pub enum FileTransferProtocol {
/// ## FileTransferError
///
/// FileTransferError defines the possible errors available for a file transfer
#[derive(std::fmt::Debug)]
pub struct FileTransferError {
code: FileTransferErrorType,
msg: Option<String>,
@@ -55,6 +55,7 @@ pub struct FileTransferError {
///
/// FileTransferErrorType defines the possible errors available for a file transfer
#[allow(dead_code)]
#[derive(std::fmt::Debug)]
pub enum FileTransferErrorType {
AuthenticationFailed,
BadAddress,