Enum electrum_client::socks::TargetAddr
source · pub enum TargetAddr {
Ip(SocketAddr),
Domain(String, u16),
}
Expand description
A description of a connection target.
Variants§
Ip(SocketAddr)
Connect to an IP address.
Domain(String, u16)
Connect to a fully qualified domain name.
The domain name will be passed along to the proxy server and DNS lookup will happen there.
Trait Implementations§
source§impl Clone for TargetAddr
impl Clone for TargetAddr
source§fn clone(&self) -> TargetAddr
fn clone(&self) -> TargetAddr
Returns a copy of the value. Read more
1.0.0 · 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 TargetAddr
impl Debug for TargetAddr
source§impl ToSocketAddrs for TargetAddr
impl ToSocketAddrs for TargetAddr
source§fn to_socket_addrs(&self) -> Result<Iter>
fn to_socket_addrs(&self) -> Result<Iter>
Converts this object to an iterator of resolved
SocketAddr
s. Read moresource§impl ToSocketAddrsDomain for TargetAddr
impl ToSocketAddrsDomain for TargetAddr
source§impl ToTargetAddr for TargetAddr
impl ToTargetAddr for TargetAddr
source§fn to_target_addr(&self) -> Result<TargetAddr>
fn to_target_addr(&self) -> Result<TargetAddr>
Converts the value of
self
to a TargetAddr
.Auto Trait Implementations§
impl RefUnwindSafe for TargetAddr
impl Send for TargetAddr
impl Sync for TargetAddr
impl Unpin for TargetAddr
impl UnwindSafe for TargetAddr
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