pub enum HostRef<'a, HostItem: TextOrPet<HOST_UE>, HostIter: Clone + IntoIterator<Item = HostItem>> {
IPv4(&'a Ipv4Addr),
IPv6 {
address: &'a Ipv6Addr,
zone: Option<&'a str>,
},
Hostname(HostIter),
}Expand description
Variants
IPv4(&'a Ipv4Addr)
IPv6
Hostname(HostIter)
Implementations
sourceimpl<'a, HostItem: TextOrPet<HOST_UE>, HostIter: Clone + IntoIterator<Item = HostItem>> HostRef<'a, HostItem, HostIter>
impl<'a, HostItem: TextOrPet<HOST_UE>, HostIter: Clone + IntoIterator<Item = HostItem>> HostRef<'a, HostItem, HostIter>
pub fn format_uri_host(&self, w: &mut impl Write) -> Result
Trait Implementations
Auto Trait Implementations
impl<'a, HostItem, HostIter> RefUnwindSafe for HostRef<'a, HostItem, HostIter> where
HostIter: RefUnwindSafe,
impl<'a, HostItem, HostIter> Send for HostRef<'a, HostItem, HostIter> where
HostIter: Send,
impl<'a, HostItem, HostIter> Sync for HostRef<'a, HostItem, HostIter> where
HostIter: Sync,
impl<'a, HostItem, HostIter> Unpin for HostRef<'a, HostItem, HostIter> where
HostIter: Unpin,
impl<'a, HostItem, HostIter> UnwindSafe for HostRef<'a, HostItem, HostIter> where
HostIter: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more