pub struct DirectTcpSocketOptionsBuilder { /* private fields */ }
Implementations§
Source§impl DirectTcpSocketOptionsBuilder
impl DirectTcpSocketOptionsBuilder
pub fn no_delay( self, no_delay: impl Into<bool>, ) -> DirectTcpSocketOptionsBuilder
pub fn keep_alive_delay( self, keep_alive_delay: impl Into<f64>, ) -> DirectTcpSocketOptionsBuilder
pub fn send_buffer_size( self, send_buffer_size: impl Into<f64>, ) -> DirectTcpSocketOptionsBuilder
pub fn receive_buffer_size( self, receive_buffer_size: impl Into<f64>, ) -> DirectTcpSocketOptionsBuilder
pub fn dns_query_type( self, dns_query_type: impl Into<DirectSocketDnsQueryType>, ) -> DirectTcpSocketOptionsBuilder
pub fn build(self) -> Result<DirectTcpSocketOptions, String>
Trait Implementations§
Source§impl Clone for DirectTcpSocketOptionsBuilder
impl Clone for DirectTcpSocketOptionsBuilder
Source§fn clone(&self) -> DirectTcpSocketOptionsBuilder
fn clone(&self) -> DirectTcpSocketOptionsBuilder
Returns a duplicate 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 Default for DirectTcpSocketOptionsBuilder
impl Default for DirectTcpSocketOptionsBuilder
Source§fn default() -> DirectTcpSocketOptionsBuilder
fn default() -> DirectTcpSocketOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DirectTcpSocketOptionsBuilder
impl RefUnwindSafe for DirectTcpSocketOptionsBuilder
impl Send for DirectTcpSocketOptionsBuilder
impl Sync for DirectTcpSocketOptionsBuilder
impl Unpin for DirectTcpSocketOptionsBuilder
impl UnwindSafe for DirectTcpSocketOptionsBuilder
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