pub struct DirectTcpSocketOptionsBuilder { /* private fields */ }Expand description
Builder for DirectTcpSocketOptions.
Implementations§
Source§impl DirectTcpSocketOptionsBuilder
impl DirectTcpSocketOptionsBuilder
Sourcepub fn keep_alive_delay<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn keep_alive_delay<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Expected to be unsigned integer.
Sourcepub fn send_buffer_size<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn send_buffer_size<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Expected to be unsigned integer.
Sourcepub fn receive_buffer_size<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn receive_buffer_size<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Expected to be unsigned integer.
pub fn dns_query_type<VALUE: Into<DirectSocketDnsQueryType>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<DirectTcpSocketOptions, DirectTcpSocketOptionsBuilderError>
pub fn build( &self, ) -> Result<DirectTcpSocketOptions, DirectTcpSocketOptionsBuilderError>
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 moreAuto Trait Implementations§
impl Freeze for DirectTcpSocketOptionsBuilder
impl RefUnwindSafe for DirectTcpSocketOptionsBuilder
impl Send for DirectTcpSocketOptionsBuilder
impl Sync for DirectTcpSocketOptionsBuilder
impl Unpin for DirectTcpSocketOptionsBuilder
impl UnsafeUnpin 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