Struct e_utils::dns::AddrInfoHints
source · [−]pub struct AddrInfoHints {
pub socktype: i32,
pub protocol: i32,
pub address: i32,
pub flags: i32,
}Available on crate feature
dns only.Expand description
A struct used as the hints argument to getaddrinfo.
Fields
socktype: i32Type of this socket. 0 for none.
Values are defined by the libc on your system.
protocol: i32Protcol for this socket. 0 for none.
Values are defined by the libc on your system.
address: i32Address family for this socket. 0 for none.
Values are defined by the libc on your system.
flags: i32Optional bitmask arguments. Bitwise OR bitflags to change the behaviour of getaddrinfo. 0 for none.
Values are defined by the libc on your system.
Trait Implementations
sourceimpl Clone for AddrInfoHints
impl Clone for AddrInfoHints
sourcefn clone(&self) -> AddrInfoHints
fn clone(&self) -> AddrInfoHints
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AddrInfoHints
impl Debug for AddrInfoHints
sourceimpl Default for AddrInfoHints
impl Default for AddrInfoHints
sourceimpl PartialEq<AddrInfoHints> for AddrInfoHints
impl PartialEq<AddrInfoHints> for AddrInfoHints
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &AddrInfoHints) -> bool
fn ne(&self, other: &AddrInfoHints) -> bool
This method tests for !=.
impl Copy 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
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
