#[repr(u32)]pub enum ares_socket_opt_t {
ARES_SOCKET_OPT_SENDBUF_SIZE = 0,
ARES_SOCKET_OPT_RECVBUF_SIZE = 1,
ARES_SOCKET_OPT_BIND_DEVICE = 2,
ARES_SOCKET_OPT_TCP_FASTOPEN = 3,
}Expand description
Socket options in request to asetsockopt() in struct ares_socket_functions_ex
Variants§
ARES_SOCKET_OPT_SENDBUF_SIZE = 0
Set the send buffer size. Value is a pointer to an int. (SO_SNDBUF)
ARES_SOCKET_OPT_RECVBUF_SIZE = 1
Set the recv buffer size. Value is a pointer to an int. (SO_RCVBUF)
ARES_SOCKET_OPT_BIND_DEVICE = 2
Set the network interface to use as the source for communication. Value is a C string. (SO_BINDTODEVICE)
ARES_SOCKET_OPT_TCP_FASTOPEN = 3
Enable TCP Fast Open. Value is a pointer to an ares_bool_t. On some systems this could be a no-op if it is known it is on by default and return success. Other systems may be a no-op if known the system does not support the feature and returns failure with errno set to ENOSYS or WSASetLastError(WSAEOPNOTSUPP).
Trait Implementations§
Source§impl Clone for ares_socket_opt_t
impl Clone for ares_socket_opt_t
Source§fn clone(&self) -> ares_socket_opt_t
fn clone(&self) -> ares_socket_opt_t
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ares_socket_opt_t
impl Debug for ares_socket_opt_t
Source§impl Hash for ares_socket_opt_t
impl Hash for ares_socket_opt_t
Source§impl PartialEq for ares_socket_opt_t
impl PartialEq for ares_socket_opt_t
impl Copy for ares_socket_opt_t
impl Eq for ares_socket_opt_t
impl StructuralPartialEq for ares_socket_opt_t
Auto Trait Implementations§
impl Freeze for ares_socket_opt_t
impl RefUnwindSafe for ares_socket_opt_t
impl Send for ares_socket_opt_t
impl Sync for ares_socket_opt_t
impl Unpin for ares_socket_opt_t
impl UnwindSafe for ares_socket_opt_t
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)