pub struct DirEntity {
pub item_type: ItemType,
pub name: GopherStr,
pub selector: GopherStr,
pub host: GopherStr,
pub port: u16,
}
Expand description
An menu item in a directory of Gopher resources.
Fields§
§item_type: ItemType
The type of the resource
name: GopherStr
String to display to the user.
selector: GopherStr
Path or identifier used for requesting this resource.
host: GopherStr
The hostname of the server hosting this resource.
port: u16
The TCP port of the server hosting this resource.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DirEntity
impl RefUnwindSafe for DirEntity
impl Send for DirEntity
impl Sync for DirEntity
impl Unpin for DirEntity
impl UnwindSafe for DirEntity
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