Struct dns_lookup::AddrInfoHints
source · pub struct AddrInfoHints {
pub flags: i32,
pub address: i32,
pub socktype: i32,
pub protocol: i32,
}Expand description
A struct used as the hints argument to getaddrinfo.
Fields§
§flags: i32Optional bitmask arguments. Bitwise OR bitflags to change the
behaviour of getaddrinfo. 0 for none. ai_flags in libc.
Values are defined by the libc on your system.
address: i32Address family for this socket. 0 for none. ai_family in libc.
Values are defined by the libc on your system.
socktype: i32Type of this socket. 0 for none. ai_socktype in libc.
Values are defined by the libc on your system.
protocol: i32Protcol for this socket. 0 for none. ai_protocol in libc.
Values are defined by the libc on your system.
Trait Implementations§
source§impl Clone for AddrInfoHints
impl Clone for AddrInfoHints
source§fn clone(&self) -> AddrInfoHints
fn clone(&self) -> AddrInfoHints
Returns a copy 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 Debug for AddrInfoHints
impl Debug for AddrInfoHints
source§impl Default for AddrInfoHints
impl Default for AddrInfoHints
source§impl PartialEq<AddrInfoHints> for AddrInfoHints
impl PartialEq<AddrInfoHints> for AddrInfoHints
source§fn eq(&self, other: &AddrInfoHints) -> bool
fn eq(&self, other: &AddrInfoHints) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for AddrInfoHints
impl Eq for AddrInfoHints
impl StructuralEq for AddrInfoHints
impl StructuralPartialEq for AddrInfoHints
Auto Trait Implementations§
impl RefUnwindSafe for AddrInfoHints
impl Send for AddrInfoHints
impl Sync for AddrInfoHints
impl Unpin for AddrInfoHints
impl UnwindSafe for AddrInfoHints
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