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
FileItem is a file
DirItem is a directory
CsoServerItem is a CSO phone-book server
ErrorError
BinHexItem is a BinHexed Macintosh file.
DosItem is DOS binary archive of some sort.
Client must read until the TCP connection closes. Beware.
UuencodedItem is a UNIX uuencoded file.
IndexServerItem is an Index-Search server.
TelnetItem points to a text-based telnet session.
BinaryItem is a binary file! Client must read until the TCP connection closes. Beware
RedundantServerItem is a redundant server
Tn3270Item points to a text-based tn3270 session.
GifItem is a GIF format graphics file.
ImageItem 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
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ItemType) -> bool
This method tests for !=.
impl Hash for ItemType[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Copy for ItemType[src]
impl Clone for ItemType[src]
fn clone(&self) -> ItemType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more