pub enum TargetAddr {
V4(SocketAddrV4),
V6(SocketAddrV6),
Domain((String, u16)),
}
Expand description
Socket Address of the target, required by SocksStream
Variants§
Trait Implementations§
Source§impl Clone for TargetAddr
impl Clone for TargetAddr
Source§fn clone(&self) -> TargetAddr
fn clone(&self) -> TargetAddr
Returns a duplicate 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 ToTargetAddr for TargetAddr
impl ToTargetAddr for TargetAddr
fn target_addr(self) -> TargetAddr
Auto Trait Implementations§
impl Freeze for TargetAddr
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