pub enum SchemeType {
NonRelativeScheme,
RelativeScheme(u16),
FileLikeRelativeScheme,
}Determines the behavior of the URL parser for a given scheme.
Variants
NonRelativeScheme | Indicate that the scheme is non-relative.
The scheme data of the URL
(everything other than the scheme, query string, and fragment identifier)
is parsed as a single percent-encoded string of which no structure is assumed.
That string may need to be parsed further, per a scheme-specific format.
|
RelativeScheme | Indicate that the scheme is relative, and what the default port number is.
The scheme data is structured as
username, password, host, port number, and path.
Relative URL references are supported, if a base URL was given.
The string value indicates the default port number as a string of ASCII digits,
or the empty string to indicate no default port number.
|
FileLikeRelativeScheme | Indicate a relative scheme similar to the file scheme.
For example, you might want to have distinct git+file and hg+file URL schemes.
This is like RelativeScheme except the host can be empty, there is no port number,
and path parsing has (platform-independent) quirks to support Windows filenames.
|
Methods
Trait Implementations
Derived Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).