pub struct AddrInfoHints {
pub flags: AddrInfoFlags,
pub family: Option<AddressFamily>,
pub socktype: i32,
pub protocol: i32,
}Expand description
Hints for an ares_getaddrinfo() call, controlling the returned results.
Fields§
§flags: AddrInfoFlagsFlags controlling the query behaviour.
family: Option<AddressFamily>Desired address family (INET, INET6, or UNSPEC).
socktype: i32Desired socket type. Common values are libc::SOCK_STREAM (TCP) and libc::SOCK_DGRAM
(UDP). 0 means any type.
protocol: i32Desired protocol number. Common values are libc::IPPROTO_TCP and libc::IPPROTO_UDP.
0 means any protocol.
Trait Implementations§
Source§impl Clone for AddrInfoHints
impl Clone for AddrInfoHints
Source§fn clone(&self) -> AddrInfoHints
fn clone(&self) -> AddrInfoHints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AddrInfoHints
Source§impl Debug for AddrInfoHints
impl Debug for AddrInfoHints
Source§impl Default for AddrInfoHints
impl Default for AddrInfoHints
Source§fn default() -> AddrInfoHints
fn default() -> AddrInfoHints
Returns the “default value” for a type. Read more
impl Eq for AddrInfoHints
Source§impl From<&AddrInfoHints> for ares_addrinfo_hints
impl From<&AddrInfoHints> for ares_addrinfo_hints
Source§fn from(hints: &AddrInfoHints) -> Self
fn from(hints: &AddrInfoHints) -> Self
Converts to this type from the input type.
Source§impl Hash for AddrInfoHints
impl Hash for AddrInfoHints
Source§impl PartialEq for AddrInfoHints
impl PartialEq for AddrInfoHints
Source§fn eq(&self, other: &AddrInfoHints) -> bool
fn eq(&self, other: &AddrInfoHints) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddrInfoHints
Auto Trait Implementations§
impl Freeze for AddrInfoHints
impl RefUnwindSafe for AddrInfoHints
impl Send for AddrInfoHints
impl Sync for AddrInfoHints
impl Unpin for AddrInfoHints
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more