pub struct Host(/* private fields */);
Available on crate features
io-tokio
or io-async-std
only.Expand description
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).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
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