[−][src]Enum koibumi_net::socks::Addr
Represents IPv4, IPv6 address or a domain name used by SOCKS5.
Variants
Ipv4(Ipv4Addr)
An IPv4 address.
Domain(Domain)
A domain name.
Ipv6(Ipv6Addr)
An IPv6 address.
Trait Implementations
impl Clone for Addr
[src]
impl Debug for Addr
[src]
impl Display for Addr
[src]
impl Eq for Addr
[src]
impl FromStr for Addr
[src]
type Err = ParseAddrError
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Addr
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Addr
[src]
pub fn cmp(&self, other: &Addr) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Addr> for Addr
[src]
impl PartialOrd<Addr> for Addr
[src]
pub fn partial_cmp(&self, other: &Addr) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Addr) -> bool
[src]
pub fn le(&self, other: &Addr) -> bool
[src]
pub fn gt(&self, other: &Addr) -> bool
[src]
pub fn ge(&self, other: &Addr) -> bool
[src]
impl StructuralEq for Addr
[src]
impl StructuralPartialEq for Addr
[src]
Auto Trait Implementations
impl RefUnwindSafe for Addr
[src]
impl Send for Addr
[src]
impl Sync for Addr
[src]
impl Unpin for Addr
[src]
impl UnwindSafe for Addr
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,