SchedulerConfig

Struct SchedulerConfig 

Source
pub struct SchedulerConfig {
Show 18 fields pub strategy: SchedulingStrategy, pub rtt_threshold_ms: u32, pub loss_threshold_percent: f32, pub rtt_weight: f32, pub loss_weight: f32, pub bandwidth_weight: f32, pub nat_penalty_weight: f32, pub sticky_paths: bool, pub sticky_timeout: Duration, pub probe_backup_paths: bool, pub probe_interval: Duration, pub throughput: ThroughputConfig, pub max_acceptable_latency_ms: u32, pub size_threshold_bytes: u64, pub throughput_aware: bool, pub effective_throughput_weight: f32, pub prevent_latency_blocking: bool, pub latency_blocking_ratio: f32,
}
Expand description

Scheduler configuration.

Fields§

§strategy: SchedulingStrategy

Scheduling strategy.

§rtt_threshold_ms: u32

Minimum RTT difference to prefer one uplink (ms).

§loss_threshold_percent: f32

Minimum loss difference to prefer one uplink (%).

§rtt_weight: f32

Weight for RTT in adaptive scoring (0-1).

§loss_weight: f32

Weight for loss in adaptive scoring (0-1).

§bandwidth_weight: f32

Weight for bandwidth in adaptive scoring (0-1).

§nat_penalty_weight: f32

Weight for NAT penalty in adaptive scoring (0-1). Higher values penalize NATted uplinks more heavily.

§sticky_paths: bool

Enable path stickiness (prefer same path for related packets).

§sticky_timeout: Duration

Stickiness timeout.

§probe_backup_paths: bool

Enable proactive probing of backup paths.

§probe_interval: Duration

Probe interval for backup paths.

§throughput: ThroughputConfig

Throughput optimization configuration.

§max_acceptable_latency_ms: u32

Maximum acceptable latency before heavy penalty (ms). Used by LatencyAware and EffectiveThroughput strategies.

§size_threshold_bytes: u64

Threshold size for size-based strategy (bytes). Transfers smaller than this prefer latency; larger prefer bandwidth.

§throughput_aware: bool

Enable effective throughput scoring for all strategies. When true, even Adaptive strategy uses throughput-aware scoring.

§effective_throughput_weight: f32

Weight for effective throughput in scoring (0-1). Higher values prioritize throughput over raw metrics.

§prevent_latency_blocking: bool

Enable latency-blocking prevention. Prevents high-latency paths from being selected when faster paths exist.

§latency_blocking_ratio: f32

Latency blocking threshold ratio. If an uplink’s latency exceeds best_latency * ratio, it’s blocked.

Trait Implementations§

Source§

impl Clone for SchedulerConfig

Source§

fn clone(&self) -> SchedulerConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for SchedulerConfig

Source§

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

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

impl Default for SchedulerConfig

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for SchedulerConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for SchedulerConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,