pub struct OutputConfig {
pub max_data_length: usize,
pub max_queued_outgoing: usize,
pub ack_wait: Duration,
}Expand description
Configuration controlling the output channel’s behaviour.
Fields§
§max_data_length: usizeThe maximum length, in bytes, of the data portion (sequence + data) of a single reliable data packet. This is the remote UDP length minus the OP code and CRC.
max_queued_outgoing: usizeThe maximum number of unacknowledged reliable data packets that may be in flight at once (the send window).
ack_wait: DurationHow long to wait for an acknowledgement before resending from the start of the window.
Trait Implementations§
Source§impl Clone for OutputConfig
impl Clone for OutputConfig
Source§fn clone(&self) -> OutputConfig
fn clone(&self) -> OutputConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutputConfig
impl Debug for OutputConfig
Auto Trait Implementations§
impl Freeze for OutputConfig
impl RefUnwindSafe for OutputConfig
impl Send for OutputConfig
impl Sync for OutputConfig
impl Unpin for OutputConfig
impl UnsafeUnpin for OutputConfig
impl UnwindSafe for OutputConfig
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