pub enum ClientMode {
Passive,
ExtendedPassive,
Active,
}Expand description
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§
Source§impl Clone for ClientMode
impl Clone for ClientMode
Source§fn clone(&self) -> ClientMode
fn clone(&self) -> ClientMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientMode
impl Debug for ClientMode
impl Copy for ClientMode
Auto Trait Implementations§
impl Freeze for ClientMode
impl RefUnwindSafe for ClientMode
impl Send for ClientMode
impl Sync for ClientMode
impl Unpin for ClientMode
impl UnwindSafe for ClientMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more