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
File
Item is a file
Dir
Item is a directory
CsoServer
Item is a CSO phone-book server
Error
Error
BinHex
Item is a BinHexed Macintosh file.
Dos
Item is DOS binary archive of some sort.
Client must read until the TCP connection closes. Beware.
Uuencoded
Item is a UNIX uuencoded file.
IndexServer
Item is an Index-Search server.
Telnet
Item points to a text-based telnet session.
Binary
Item is a binary file! Client must read until the TCP connection closes. Beware
RedundantServer
Item is a redundant server
Tn3270
Item points to a text-based tn3270 session.
Gif
Item is a GIF format graphics file.
Image
Item is some kind of image file. Client decides how to display.
Other(u8)
Item is a non-standard type
Methods
impl ItemType
[src]
Trait Implementations
impl Debug for ItemType
[src]
impl Eq for ItemType
[src]
impl PartialEq for ItemType
[src]
fn eq(&self, __arg_0: &ItemType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ItemType) -> bool
[src]
This method tests for !=
.
impl Hash for ItemType
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more