pub struct Config {
pub tx_window: u8,
pub ack_time_init: Duration,
pub ack_time_min: Duration,
pub ack_time_max: Duration,
pub max_timeouts: u32,
pub rst_timeout: Duration,
pub rst_attempts: u32,
pub not_ready_time: Duration,
pub max_queue: usize,
}Expand description
Link timing and window settings. The defaults follow UG101.
Fields§
§tx_window: u8DATA frames in flight before an ACK, 1 to 7.
ack_time_init: DurationInitial ACK timeout.
ack_time_min: DurationLower bound of the adaptive ACK timeout.
ack_time_max: DurationUpper bound of the adaptive ACK timeout.
max_timeouts: u32Consecutive ACK timeouts before the link is declared down.
rst_timeout: DurationHow long the host waits for RSTACK before sending RST again.
rst_attempts: u32RST attempts before giving up.
not_ready_time: DurationHow long to hold DATA after the peer said it is not ready.
max_queue: usizePayloads queued but not yet sent, beyond which Connection::send refuses.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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