pub enum Host<'a> {
Domain(Name<'a>),
IpAddr(IpAddr),
}Expand description
Information about the host part of an email address
Variants§
Trait Implementations§
Source§impl<'a> Ord for Host<'a>
impl<'a> Ord for Host<'a>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Host<'a>
impl<'a> PartialOrd for Host<'a>
impl<'a> Copy for Host<'a>
impl<'a> Eq for Host<'a>
impl<'a> StructuralPartialEq for Host<'a>
Auto Trait Implementations§
impl<'a> Freeze for Host<'a>
impl<'a> RefUnwindSafe for Host<'a>
impl<'a> Send for Host<'a>
impl<'a> Sync for Host<'a>
impl<'a> Unpin for Host<'a>
impl<'a> UnsafeUnpin for Host<'a>
impl<'a> UnwindSafe for Host<'a>
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