pub struct TransportConfig {
pub max_packet_size: usize,
pub fragment_size: usize,
pub max_fragments_per_packet: usize,
pub reliable_window_size: usize,
pub max_retransmits: u32,
pub retransmit_timeout_ms: u64,
pub connection_timeout_ms: u64,
pub keepalive_interval_ms: u64,
pub max_bandwidth_bytes_per_sec: usize,
pub ack_redundancy: usize,
}Expand description
Configuration for the transport layer.
Fields§
§max_packet_size: usize§fragment_size: usize§max_fragments_per_packet: usize§reliable_window_size: usize§max_retransmits: u32§retransmit_timeout_ms: u64§connection_timeout_ms: u64§keepalive_interval_ms: u64§max_bandwidth_bytes_per_sec: usize§ack_redundancy: usizeTrait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
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 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 UnsafeUnpin 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