pub enum Host<'url> {
Hostname(Hostname<'url>),
Ip(IpAddr),
}
Expand description
Represents the host component of a URL, which can be either a hostname or an IP address.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'url> Freeze for Host<'url>
impl<'url> RefUnwindSafe for Host<'url>
impl<'url> Send for Host<'url>
impl<'url> Sync for Host<'url>
impl<'url> Unpin for Host<'url>
impl<'url> UnwindSafe for Host<'url>
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