[−][src]Enum ftp_client::client::ClientMode
A FTP client can run in two main modes: active and passive.
The passive mode is the simpler to run, you simply ask the server for a host to connect and connect to it, this is your data connection (for more information about the FTP protocol, check RFC959).
The active mode is different, you must open a port on your machine and use that to connect to the server. This can be a problem if you have firewalls set on your machine/network, for the common user, the passive mode should work fine.
The ExtendedPassive mode listed is simply the passive mode with support for IPV6.
Variants
The passive mode, using the PASV command
The extended passive mode, using the EPSV command
The active mode, not implemented yet
Trait Implementations
impl Clone for ClientMode
[src]
fn clone(&self) -> ClientMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ClientMode
[src]
impl Debug for ClientMode
[src]
Auto Trait Implementations
impl Send for ClientMode
impl Sync for ClientMode
impl Unpin for ClientMode
impl UnwindSafe for ClientMode
impl RefUnwindSafe for ClientMode
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,