pub enum TargetHost {
Ip(IpAddr),
Domain(String),
}Expand description
The host of a target server, either an IP address or a domain name.
Variants§
Trait Implementations§
Source§impl Clone for TargetHost
impl Clone for TargetHost
Source§fn clone(&self) -> TargetHost
fn clone(&self) -> TargetHost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetHost
impl Debug for TargetHost
Source§impl Display for TargetHost
impl Display for TargetHost
impl Eq for TargetHost
Source§impl Hash for TargetHost
impl Hash for TargetHost
Source§impl PartialEq for TargetHost
impl PartialEq for TargetHost
impl StructuralPartialEq for TargetHost
Auto Trait Implementations§
impl Freeze for TargetHost
impl RefUnwindSafe for TargetHost
impl Send for TargetHost
impl Sync for TargetHost
impl Unpin for TargetHost
impl UnsafeUnpin for TargetHost
impl UnwindSafe for TargetHost
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