Struct phetch::gopher::Url

source ·
pub struct Url<'a> {
    pub typ: Type,
    pub host: &'a str,
    pub port: &'a str,
    pub sel: &'a str,
}
Expand description

Gopher URL. Returned by parse_url().

Fields§

§typ: Type

Gopher Type

§host: &'a str

Hostname

§port: &'a str

Port. Defaults to 70

§sel: &'a str

Selector

Implementations§

Creates a new Gopher Url quickly from a tuple of Url fields.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.