pub struct ClientBuilder { /* private fields */ }
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn with_timeout_rate(self, d: Duration) -> Self
pub fn with_timeout_rate(self, d: Duration) -> Self
with_timeout_rate sets RTO timer minimum resolution.
Sourcepub fn with_buffer_size(self, buffer_size: usize) -> Self
pub fn with_buffer_size(self, buffer_size: usize) -> Self
with_buffer_size sets buffer size.
Sourcepub fn with_no_retransmit(self) -> Self
pub fn with_no_retransmit(self) -> Self
with_no_retransmit disables retransmissions and sets RTO to DEFAULT_MAX_ATTEMPTS * DEFAULT_RTO which will be effectively time out if not set. Useful for TCP connections where transport handles RTO.
pub fn new() -> Self
pub fn build( self, local: SocketAddr, remote: SocketAddr, protocol: Protocol, ) -> Result<Client>
Trait Implementations§
Source§impl Default for ClientBuilder
impl Default for ClientBuilder
Source§fn default() -> ClientBuilder
fn default() -> ClientBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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