Skip to main content

Module stream_priority_scheduler

Module stream_priority_scheduler 

Source
Expand description

Stream-level priority scheduler for multiplexed network streams.

Implements multiple scheduling disciplines:

  • Strict Priority (SP): highest-priority streams always scheduled first
  • Weighted Fair Queuing (WFQ): proportional share based on weight
  • Deficit Round Robin (DRR): byte-accurate fairness with deficit counters
  • Earliest Deadline First (EDF): deadline-aware scheduling for latency-sensitive flows
  • Hierarchical Token Bucket (HTB): hierarchical bandwidth allocation with token buckets

All methods are no_std-friendly (no external crates beyond what’s already in Cargo.toml).

Structs§

SpsSchedulerConfig
Configuration for StreamPriorityScheduler.
SpsSchedulerStats
Aggregate scheduling statistics.
SpsStream
State tracked for a single multiplexed stream.
StreamPriorityScheduler
A stream-level priority scheduler for multiplexed network streams.

Enums§

SpsError
Errors returned by StreamPriorityScheduler operations.
SpsSchedulingPolicy
Scheduling algorithm used by StreamPriorityScheduler.

Functions§

xorshift64

Type Aliases§

SpsStreamId
Unique identifier for a scheduled stream.