pub struct AddrInfo {
pub socktype: i32,
pub protocol: i32,
pub address: i32,
pub sockaddr: SocketAddr,
pub canonname: Option<String>,
pub flags: i32,
}Available on crate feature
dns only.Expand description
Struct that stores socket information, as returned by getaddrinfo.
This maps to the same definition provided by libc backends.
Fields
socktype: i32Type of this socket.
Values are defined by the libc on your system.
protocol: i32Protcol family for this socket.
Values are defined by the libc on your system.
address: i32Address family for this socket (usually matches protocol family).
Values are defined by the libc on your system.
sockaddr: SocketAddrSocket 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: i32Optional bitmask arguments, usually set to zero.
Trait Implementations
impl StructuralPartialEq for AddrInfo
Auto Trait Implementations
impl RefUnwindSafe for AddrInfo
impl Send for AddrInfo
impl Sync for AddrInfo
impl Unpin for AddrInfo
impl UnwindSafe for AddrInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
