pub struct Host(_);
The host part of a domain (without scheme, port and path).
This is the argument to the connect function. Strings and string slices are converted into Hosts automatically, as is Url with the host-from-url feature (enabled by default).
connect
host-from-url
The host as string. Consumes self.
TypeId
self
Returns the argument unchanged.
Calls U::from(self).
U::from(self)
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
From<T> for U