pub enum FtpError {
ConnectionError(Error),
UnexpectedResponse(Response),
BadResponse,
InvalidAddress(AddrParseError),
}
Expand description
FtpError
is a library-global error type to describe the different kinds of
errors that might occur while using FTP.
Variants§
ConnectionError(Error)
Connection error
UnexpectedResponse(Response)
Unexpected response from remote. The command expected a certain response, but got another one. This means the ftp server refused to perform your request or there was an error while processing it. Contains the response data.
BadResponse
The response syntax is invalid
InvalidAddress(AddrParseError)
The address provided was invalid
Trait Implementations§
source§impl Error for FtpError
impl Error for FtpError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()