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 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
impl Eq for AddrInfoHints
Source§impl PartialEq for AddrInfoHints
impl PartialEq for AddrInfoHints
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