EngineConfig

Struct EngineConfig 

Source
pub struct EngineConfig {
    pub reorder_grace_ms: u64,
    pub fragment_grace_ms: u64,
    pub group_jitter_ms: u64,
    pub max_auto_repair_gap: u8,
    pub min_request_interval_ms: u64,
    pub max_requests_per_tick: u8,
    pub max_repair_attempts: u8,
    pub reassembly_ttl_ms: u64,
    pub request_retry_ms: u64,
    pub coalesce_window_ms: u64,
    pub fragment_notify_ms: u64,
    pub sentinels: RenderSentinels,
}
Expand description

Tuning knobs. Defaults suit a LoRa mesh; a pager may shrink the windows.

Fields§

§reorder_grace_ms: u64

Grace period before acting on an inferred gap, absorbing reordering.

§fragment_grace_ms: u64

Minimum quiet time after the newest stored fragment before repair of that reassembly may begin. Every fragment arrival defers repair by at least this much (and by twice the observed inter-fragment gap when that is larger), so an actively delivering message is never repaired mid-flight. Platforms should set this to several frame airtimes.

§group_jitter_ms: u64

Maximum extra randomized delay for channel-group repair requests.

§max_auto_repair_gap: u8

Largest forward gap repaired automatically (spec bound: 8).

§min_request_interval_ms: u64

Minimum interval between resend requests on one stream.

§max_requests_per_tick: u8

Maximum resend requests transmitted per tick across all streams.

§max_repair_attempts: u8

Maximum automatic request attempts per missing frame.

§reassembly_ttl_ms: u64

Reassembly lifetime before a partial message is finalized.

§request_retry_ms: u64

Interval between repair attempts for the same frame.

§coalesce_window_ms: u64

Window in which duplicate resend requests are coalesced.

§fragment_notify_ms: u64

Latency after the first fragment of an incomplete message before the host is notified anyway (the sooner of this deadline and completion).

§sentinels: RenderSentinels

Trait Implementations§

Source§

impl Clone for EngineConfig

Source§

fn clone(&self) -> EngineConfig

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EngineConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EngineConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.