pub enum CommandKind {
Show 61 variants
ABOR(ABOR),
ACCT(ACCT),
ADAT(ADAT),
ALLO(ALLO),
APPE(APPE),
AUTH(AUTH),
CCC(CCC),
CDUP(CDUP),
CONF(CONF),
CWD(CWD),
DELE(DELE),
ENC(ENC),
EPRT(EPRT),
EPSV(EPSV),
FEAT(FEAT),
HELP(HELP),
HOST(HOST),
LANG(LANG),
LIST(LIST),
LPRT(LPRT),
LPSV(LPSV),
MDTM(MDTM),
MIC(MIC),
MKD(MKD),
MLSD(MLSD),
MLST(MLST),
MODE(MODE),
NLST(NLST),
NOOP(NOOP),
OPTS(OPTS),
PASS(PASS),
PASV(PASV),
PBSZ(PBSZ),
PORT(PORT),
PROT(PROT),
PWD(PWD),
QUIT(QUIT),
REIN(REIN),
REST(REST),
RETR(RETR),
RMD(RMD),
RNFR(RNFR),
RNTO(RNTO),
SITE(SITE),
SIZE(SIZE),
SMNT(SMNT),
STAT(STAT),
STOR(STOR),
STOU(STOU),
STRU(STRU),
SYST(SYST),
TYPE(TYPE),
USER(USER),
XCUP(XCUP),
XMKD(XMKD),
XPWD(XPWD),
XRCP(XRCP),
XRMD(XRMD),
XRSQ(XRSQ),
XSEM(XSEM),
XSEN(XSEN),
}
Variants§
ABOR(ABOR)
Abort an active file transfer.
ACCT(ACCT)
Account information.
ADAT(ADAT)
Authentication/Security Data.
ALLO(ALLO)
Allocate sufficient disk space to receive a file.
APPE(APPE)
Append.
AUTH(AUTH)
Authentication/Security Mechanism.
CCC(CCC)
Clear Command Channel.
CDUP(CDUP)
Change directory up one level.
CONF(CONF)
Confidentiality Protection Command.
CWD(CWD)
Change working directory.
DELE(DELE)
Delete file.
ENC(ENC)
Privacy Protected Channel.
EPRT(EPRT)
Specifies an extended address and port to which the server should connect.
EPSV(EPSV)
Enter extended passive mode.
FEAT(FEAT)
Get the feature list implemented by the server.
HELP(HELP)
Returns usage documentation on a command if specified, else a general help document is returned.
HOST(HOST)
Identify desired virtual host on server, by name.
LANG(LANG)
Language Negotiation.
LIST(LIST)
Returns information of a file or directory if specified, else information of the current working directory is returned.
LPRT(LPRT)
Specifies a long address and port to which the server should connect.
LPSV(LPSV)
Enter long passive mode.
MDTM(MDTM)
Return the last-modified time of a specified file.
MIC(MIC)
Integrity Protected Command.
MKD(MKD)
Make directory.
MLSD(MLSD)
Lists the contents of a directory if a directory is named.
MLST(MLST)
Provides data about exactly the object named on its command line, and no others.
MODE(MODE)
Sets the transfer mode.
NLST(NLST)
Returns a list of file names in a specified directory.
NOOP(NOOP)
A no-operation.
OPTS(OPTS)
Select options for a feature.
PASS(PASS)
Authentication password.
PASV(PASV)
Enter passive mode.
PBSZ(PBSZ)
Protection Buffer Size.
PORT(PORT)
Specifies an address and port to which the server should connect.
PROT(PROT)
Data Channel Protection Level.
PWD(PWD)
Gets the name of the current working directory on the remote host.
QUIT(QUIT)
Terminates the command connection.
REIN(REIN)
Reinitializes the command connection.
REST(REST)
Restart transfer from the specified point.
RETR(RETR)
Retrieve a copy of the file.
RMD(RMD)
Remove a directory.
RNFR(RNFR)
Rename from.
RNTO(RNTO)
Rename to.
SITE(SITE)
Sends site specific commands to remote server.
SIZE(SIZE)
Return the size of a file.
SMNT(SMNT)
Mount file structure.
STAT(STAT)
Returns the current status.
STOR(STOR)
Accept the data and to store the data as a file at the server site.
STOU(STOU)
Store file uniquely.
STRU(STRU)
Set file transfer structure.
SYST(SYST)
Returns a word identifying the system.
TYPE(TYPE)
Sets the transfer mode (ASCII/binary).
USER(USER)
Sets the name for the user.
XCUP(XCUP)
Change to the parent of the current working directory.
XMKD(XMKD)
Make a directory.
XPWD(XPWD)
Print the current working directory.
XRCP(XRCP)
XRMD(XRMD)
Remove the directory.
XRSQ(XRSQ)
XSEM(XSEM)
Send, mail if cannot.
XSEN(XSEN)
Send to terminal.
Implementations§
Trait Implementations§
Source§impl Clone for CommandKind
impl Clone for CommandKind
Source§fn clone(&self) -> CommandKind
fn clone(&self) -> CommandKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CommandKind
impl Debug for CommandKind
Source§impl PartialEq for CommandKind
impl PartialEq for CommandKind
impl Eq for CommandKind
impl StructuralPartialEq for CommandKind
Auto Trait Implementations§
impl Freeze for CommandKind
impl RefUnwindSafe for CommandKind
impl Send for CommandKind
impl Sync for CommandKind
impl Unpin for CommandKind
impl UnwindSafe for CommandKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more