pub struct TcpConfigBuilder { /* private fields */ }
Implementations§
Source§impl TcpConfigBuilder
impl TcpConfigBuilder
pub fn new() -> Self
pub fn auto_pack(&mut self, auto_pack: bool) -> &mut Self
pub fn enable_ipv6(&mut self, enable_ipv6: bool) -> &mut Self
pub fn max_body_size(&mut self, max_body_size: u32) -> &mut Self
pub fn max_send_buffer_size(&mut self, max_send_buffer_size: u32) -> &mut Self
pub fn socket_send_buffer_size( &mut self, socket_send_buffer_size: u32, ) -> &mut Self
pub fn socket_recv_buffer_size( &mut self, socket_recv_buffer_size: u32, ) -> &mut Self
pub fn build(&self) -> TcpConfig
Auto Trait Implementations§
impl Freeze for TcpConfigBuilder
impl RefUnwindSafe for TcpConfigBuilder
impl Send for TcpConfigBuilder
impl Sync for TcpConfigBuilder
impl Unpin for TcpConfigBuilder
impl UnwindSafe for TcpConfigBuilder
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