[][src]Enum ftp_client::client::ClientMode

pub enum ClientMode {
    Passive,
    ExtendedPassive,
    Active,
}

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

Passive

The passive mode, using the PASV command

ExtendedPassive

The extended passive mode, using the EPSV command

Active

The active mode, not implemented yet

Trait Implementations

impl Clone for ClientMode[src]

impl Copy for ClientMode[src]

impl Debug for ClientMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]