Enum gopher_core::types::ItemType [] [src]

pub enum ItemType {
    File,
    Dir,
    CsoServer,
    Error,
    BinHex,
    Dos,
    Uuencoded,
    IndexServer,
    Telnet,
    Binary,
    RedundantServer,
    Tn3270,
    Gif,
    Image,
    Other(u8),
}

The type of a resource in a Gopher directory.

For more details, see: https://tools.ietf.org/html/rfc1436

Variants

Item is a file

Item is a directory

Item is a CSO phone-book server

Error

Item is a BinHexed Macintosh file.

Item is DOS binary archive of some sort.

Client must read until the TCP connection closes. Beware.

Item is a UNIX uuencoded file.

Item is an Index-Search server.

Item points to a text-based telnet session.

Item is a binary file! Client must read until the TCP connection closes. Beware

Item is a redundant server

Item points to a text-based tn3270 session.

Item is a GIF format graphics file.

Item is some kind of image file. Client decides how to display.

Item is a non-standard type

Methods

impl ItemType
[src]

[src]

[src]

Trait Implementations

impl Debug for ItemType
[src]

[src]

Formats the value using the given formatter.

impl Eq for ItemType
[src]

impl PartialEq for ItemType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Hash for ItemType
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for ItemType
[src]

impl Clone for ItemType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more