pub struct GopherEntry<'a> {
pub item_type: ItemType,
pub display_string: &'a str,
pub selector: &'a str,
pub host: &'a str,
pub port: u16,
}
Expand description
A single entry in a Gopher map. This struct can be filled in order to generate Gopher responses. It can also be the result of parsing one.
Fields§
§item_type: ItemType
The type of the link
display_string: &'a str
The human-readable description of the link. Displayed on the UI.
selector: &'a str
The target page (selector) of the link
host: &'a str
The host for the target of the link
port: u16
The port for the target of the link
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GopherEntry<'a>
impl<'a> RefUnwindSafe for GopherEntry<'a>
impl<'a> Send for GopherEntry<'a>
impl<'a> Sync for GopherEntry<'a>
impl<'a> Unpin for GopherEntry<'a>
impl<'a> UnwindSafe for GopherEntry<'a>
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