pub enum GopherKind {
Info,
Error,
Text,
Submenu,
Search,
Binary,
Image,
Sound,
Telnet,
Url,
Other(char),
}Expand description
The semantic class of a gopher menu line, from its item-type character.
Variants§
Info
i — informational text, no resource.
Error
3 — server error message, no resource.
Text
0 — text file.
1 — submenu / directory.
Search
7 — full-text search server.
Binary
9 — binary.
Image
g / I — image.
Sound
s — sound.
Telnet
T — telnet session.
Url
h — URL item (the selector carries an external URL).
Other(char)
Any other (still navigable) item type.
Trait Implementations§
Source§impl Clone for GopherKind
impl Clone for GopherKind
Source§fn clone(&self) -> GopherKind
fn clone(&self) -> GopherKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GopherKind
impl Debug for GopherKind
impl Eq for GopherKind
Source§impl PartialEq for GopherKind
impl PartialEq for GopherKind
impl StructuralPartialEq for GopherKind
Auto Trait Implementations§
impl Freeze for GopherKind
impl RefUnwindSafe for GopherKind
impl Send for GopherKind
impl Sync for GopherKind
impl Unpin for GopherKind
impl UnsafeUnpin for GopherKind
impl UnwindSafe for GopherKind
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
Mutably borrows from an owned value. Read more