pub struct TransportConfig { /* private fields */ }Expand description
Config collects the arguments to create_association construction into a single structure
Implementations§
Source§impl TransportConfig
impl TransportConfig
pub fn with_max_receive_buffer_size(self, value: u32) -> Self
pub fn with_max_message_size(self, value: u32) -> Self
pub fn with_max_num_outbound_streams(self, value: u16) -> Self
pub fn with_max_num_inbound_streams(self, value: u16) -> Self
Sourcepub fn with_max_init_retransmits(self, value: Option<usize>) -> Self
pub fn with_max_init_retransmits(self, value: Option<usize>) -> Self
Set maximum INIT retransmissions. None means unlimited.
Sourcepub fn with_max_data_retransmits(self, value: Option<usize>) -> Self
pub fn with_max_data_retransmits(self, value: Option<usize>) -> Self
Set maximum DATA retransmissions. None means unlimited.
Sourcepub fn with_rto_initial_ms(self, value: u64) -> Self
pub fn with_rto_initial_ms(self, value: u64) -> Self
Set initial RTO in milliseconds.
Sourcepub fn with_rto_min_ms(self, value: u64) -> Self
pub fn with_rto_min_ms(self, value: u64) -> Self
Set minimum RTO in milliseconds.
Sourcepub fn with_rto_max_ms(self, value: u64) -> Self
pub fn with_rto_max_ms(self, value: u64) -> Self
Set maximum RTO in milliseconds.
Trait Implementations§
Source§impl Debug for TransportConfig
impl Debug for TransportConfig
Auto Trait Implementations§
impl Freeze for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnwindSafe for TransportConfig
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