Struct dns_lookup::AddrInfo
source · pub struct AddrInfo {
pub flags: i32,
pub address: i32,
pub socktype: i32,
pub protocol: i32,
pub sockaddr: SocketAddr,
pub canonname: Option<String>,
}
Expand description
Struct that stores socket information, as returned by getaddrinfo.
Fields§
§flags: i32
Optional bitmask arguments, usually set to zero. ai_flags
in libc.
address: i32
Address family for this socket (usually matches protocol family). ai_family
in libc.
Values are defined by the libc on your system.
socktype: i32
Type of this socket. ai_socktype
in libc.
Values are defined by the libc on your system.
protocol: i32
Protcol family for this socket. ai_protocol
in libc.
Values are defined by the libc on your system.
sockaddr: SocketAddr
Socket address for this socket, usually containing an actual
IP Address and port. Combination of ai_addrlen
and ai_addr
in libc.
canonname: Option<String>
If requested, this is the canonical name for this socket/host. ai_canonname
in libc.
Trait Implementations§
source§impl PartialEq for AddrInfo
impl PartialEq for AddrInfo
impl Eq for AddrInfo
impl StructuralEq for AddrInfo
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§
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