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
sourceimpl Error for FtpError
impl Error for FtpError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for FtpError
impl Send for FtpError
impl Sync for FtpError
impl Unpin for FtpError
impl !UnwindSafe for FtpError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more