[−][src]Struct dns_lookup::AddrInfo
Struct that stores socket information, as returned by getaddrinfo.
This maps to the same definition provided by libc backends.
Fields
socktype: i32
Type of this socket.
Values are defined by the libc on your system.
protocol: i32
Protcol family for this socket.
Values are defined by the libc on your system.
address: i32
Address family for this socket (usually matches protocol family).
Values are defined by the libc on your system.
sockaddr: SocketAddr
Socket address for this socket, usually containing an actual IP Address and port.
canonname: Option<String>
If requested, this is the canonical name for this socket/host.
flags: i32
Optional bitmask arguments, usually set to zero.
Trait Implementations
impl PartialEq<AddrInfo> for AddrInfo
[src]
impl Clone for AddrInfo
[src]
fn clone(&self) -> AddrInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for AddrInfo
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,