gftp/command/file_type

File type options for FTP

Types

File Type used in TYPE command

pub type FileType {
  Ascii(FormatControl)
  Ebcdic(FormatControl)
  Image
  Binary
  Local(Int)
}

Constructors

  • Ascii(FormatControl)

    ASCII text (the argument is the text format control)

  • Ebcdic(FormatControl)

    EBCDIC text (the argument is the text format control)

  • Image

    Image (binary data)

  • Binary

    Binary (the synonym to Image)

  • Local(Int)

    Local format (the argument is the number of bits in one byte on local machine)

Text Format Control used in TYPE command

pub type FormatControl {
  Default
  NonPrint
  Telnet
  Asa
}

Constructors

  • Default

    Default text format control (is NonPrint)

  • NonPrint

    Non-print (not destined for printing)

  • Telnet

    Telnet format control (<CR>, <FF>, etc.)

  • Asa

    ASA (Fortran) Carriage Control

Values

pub fn to_string(file_type: FileType) -> String
Search Document