pub struct ProxiedAddr<A: Addr = NetAddr<HostName>> {
pub proxy_addr: NetAddr<InetHost>,
pub remote_addr: A,
}Expand description
An address which must be accessed through proxy. Usually this is SOCLS5
proxy, but at the type level there is no information about the specific
proxy type which should be used (however they may contained within the
generic type parameter A).
Fields§
§proxy_addr: NetAddr<InetHost>Available on crate feature
§dns only.remote_addr: ATrait Implementations§
Source§impl<A: Addr> Addr for ProxiedAddr<A>
impl<A: Addr> Addr for ProxiedAddr<A>
Source§impl<A: Clone + Addr> Clone for ProxiedAddr<A>
impl<A: Clone + Addr> Clone for ProxiedAddr<A>
Source§fn clone(&self) -> ProxiedAddr<A>
fn clone(&self) -> ProxiedAddr<A>
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<'de, A> Deserialize<'de> for ProxiedAddr<A>where
A: Deserialize<'de> + Addr,
impl<'de, A> Deserialize<'de> for ProxiedAddr<A>where
A: Deserialize<'de> + Addr,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<A: Addr> Host for ProxiedAddr<A>
impl<A: Addr> Host for ProxiedAddr<A>
fn requires_proxy(&self) -> bool
Source§impl<A: Ord + Addr> Ord for ProxiedAddr<A>
impl<A: Ord + Addr> Ord for ProxiedAddr<A>
Source§fn cmp(&self, other: &ProxiedAddr<A>) -> Ordering
fn cmp(&self, other: &ProxiedAddr<A>) -> Ordering
1.21.0 · 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 + Addr> PartialOrd for ProxiedAddr<A>
impl<A: PartialOrd + Addr> PartialOrd for ProxiedAddr<A>
Source§impl<A> Serialize for ProxiedAddr<A>
impl<A> Serialize for ProxiedAddr<A>
impl<A: Eq + Addr> Eq for ProxiedAddr<A>
impl<A: Addr> StructuralPartialEq for ProxiedAddr<A>
Auto Trait Implementations§
impl<A> Freeze for ProxiedAddr<A>where
A: Freeze,
impl<A> RefUnwindSafe for ProxiedAddr<A>where
A: RefUnwindSafe,
impl<A> Send for ProxiedAddr<A>where
A: Send,
impl<A> Sync for ProxiedAddr<A>where
A: Sync,
impl<A> Unpin for ProxiedAddr<A>where
A: Unpin,
impl<A> UnwindSafe for ProxiedAddr<A>where
A: UnwindSafe,
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