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
sourceimpl Clone for TargetAddr
impl Clone for TargetAddr
sourcefn clone(&self) -> TargetAddr
fn clone(&self) -> TargetAddr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TargetAddr
impl Debug for TargetAddr
sourceimpl ToSocketAddrs for TargetAddr
impl ToSocketAddrs for TargetAddr
type Iter = Iter
type Iter = Iter
Returned iterator over socket addresses which this type may correspond to. Read more
sourcefn to_socket_addrs(&self) -> Result<Iter>
fn to_socket_addrs(&self) -> Result<Iter>
Converts this object to an iterator of resolved SocketAddr
s. Read more
sourceimpl ToSocketAddrsDomain for TargetAddr
impl ToSocketAddrsDomain for TargetAddr
sourceimpl ToTargetAddr for TargetAddr
impl ToTargetAddr for TargetAddr
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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