Crate pathlink

Source
Expand description

A URI which supports IPv4, IPv6, domain names, and segmented Paths.

Structs§

Host
The host component of a Link (e.g. “http://127.0.0.1:8702”)
Id
A human-readable ID
Ipv4Addr
An IPv4 address.
Ipv6Addr
An IPv6 address.
Label
A static label which implements Into<Id>.
Link
An HTTP Link with an optional Address and PathBuf
ParseError
An error encountered while parsing an Id.
Path
A segmented link safe to use with a filesystem or via HTTP.
PathBuf
A segmented link buffer safe to use with a filesystem or via HTTP.
PathLabel
A constant representing a PathBuf.

Enums§

Address
A network address
IpAddr
An IP address, either IPv4 or IPv6.
Protocol
The protocol portion of a Link (e.g. “http”)
ToUrl
An owned or borrowed Link or Path which can be parsed as a URL.

Functions§

label
Return a Label with the given static str.
path_label
Return a PathLabel with the given segments.

Type Aliases§

PathSegment
A segment of a Path
Port
A port number