pub struct L3L4Build<T> { /* private fields */ }Implementations§
Source§impl<'a, T> L3L4Build<T>
impl<'a, T> L3L4Build<T>
Sourcepub fn mtu(self, mtu: usize) -> Self
pub fn mtu(self, mtu: usize) -> Self
The MTU, i.e max size of transmit packets to be expected in Callbacks.l3_tx(). Default is 1500
Sourcepub fn tcp_buffer_size(self, tcp_bufsize: usize) -> Self
pub fn tcp_buffer_size(self, tcp_bufsize: usize) -> Self
Maximum TCP data in bytes buffered in the Rx AND Tx directions - the same buffer size is used for both directions. Default is 64*1024 bytes
Sourcepub fn tcp_idle_timeout(self, tcp_idle_timeout: u64) -> Self
pub fn tcp_idle_timeout(self, tcp_idle_timeout: u64) -> Self
TCP idle timeout in seconds - if there is no Rx or Tx data (excluding ACKs etc..) in this period of time, the flow will get closed. Ddefault is 7200 seconds
Sourcepub fn tcp_halfopen_idle_timeout(self, tcp_halfopen_idle_timeout: u64) -> Self
pub fn tcp_halfopen_idle_timeout(self, tcp_halfopen_idle_timeout: u64) -> Self
If the TCP session is in a half open state - i.e the remote end alone is closed or local end alone is closed - and there is no further Rx or Tx data excluding ACKs, in this period of time (in seconds), the flow is removed from the system. Default is 7200 seconds
Sourcepub fn udp_idle_timeout(self, udp_idle_timeout: u64) -> Self
pub fn udp_idle_timeout(self, udp_idle_timeout: u64) -> Self
If there is no UDP RX or TX in this period of time (in seconds), the UDP flow is removed from the system