pub enum Host<'m> {
Name(&'m str),
IpAddr(IpAddr),
}Expand description
A host name or an IP address.
Variants§
Name(&'m str)
A host name, or an address literal that is not an IP address.
IpAddr(IpAddr)
An IPv4 or IPv6 address.
Trait Implementations§
impl<'m> Copy for Host<'m>
impl<'m> Eq for Host<'m>
impl<'m> StructuralPartialEq for Host<'m>
Auto Trait Implementations§
impl<'m> Freeze for Host<'m>
impl<'m> RefUnwindSafe for Host<'m>
impl<'m> Send for Host<'m>
impl<'m> Sync for Host<'m>
impl<'m> Unpin for Host<'m>
impl<'m> UnsafeUnpin for Host<'m>
impl<'m> UnwindSafe for Host<'m>
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