Skip to main content

UnifiedConfig

Struct UnifiedConfig 

Source
pub struct UnifiedConfig {
    pub policy: CodePolicy,
    pub symbol_len: usize,
    pub k: usize,
    pub r: usize,
    pub rlc_flow_window: u32,
    pub debug_loss: u32,
    pub seed: u64,
    pub rlc_step: u16,
    pub rlc_static: bool,
}
Expand description

Construction parameters shared by the unified sender and receiver.

Fields§

§policy: CodePolicy

Erasure-code selection policy (loss-driven Auto, or a forced code).

§symbol_len: usize

Item / symbol size in bytes (matches the application’s record size).

§k: usize

Reed-Solomon block geometry: k data shards.

§r: usize

Reed-Solomon base parity shards r (the receiver provisions per loss).

§rlc_flow_window: u32

RLC sender flow window (outstanding source symbols); 0 = transport default. Size it to the path BDP so RLC fills the pipe (the fair-A/B config; the default caps RLC ~2x below its capability on a high-BDP path).

§debug_loss: u32

Receiver-side diagnostic loss injection (percent, 0 = off) applied to BOTH decoders, with seed for reproducibility. Drives the loss-based switch without a real lossy link.

§seed: u64

Seed for the reproducible debug_loss drop sequence.

§rlc_step: u16

RLC repair cadence: one repair every rlc_step source symbols (redundancy 1/(rlc_step+1)). The starting value; the adaptive controller retunes it per measured loss unless rlc_static pins it.

§rlc_static: bool

Pin the RLC coding parameters (disable the adaptive controller), holding a fixed code rate instead of letting the sensing plane retune window / step / density. The adaptive controller’s disable-on-clean state drops coding entirely on a quiet assessment and then pays an ARQ round trip on the next loss; pinning trades that latency risk for a constant redundancy.

Implementations§

Source§

impl UnifiedConfig

Source

pub fn new(symbol_len: usize) -> Self

Defaults: loss-driven Auto policy, MTU-sized items, RS (8, 2), RLC flow window sized for a filled BDP, no injected loss.

Trait Implementations§

Source§

impl Clone for UnifiedConfig

Source§

fn clone(&self) -> UnifiedConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for UnifiedConfig

Source§

impl Debug for UnifiedConfig

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

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

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

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.