pub struct SpsStream {}Expand description
State tracked for a single multiplexed stream.
Fields§
§id: SpsStreamIdUnique stream identifier.
priority: u32Scheduling priority (higher = more important; 255 is highest).
weight: u32Relative weight used for proportional-share policies.
pending_bytes: u64Number of bytes waiting to be sent.
deficit_counter: i64DRR deficit counter (may be negative after a partial send).
send_count: u64Total number of scheduling events for this stream.
bytes_sent: u64Total bytes transmitted so far.
last_scheduled_ts: u64Timestamp (monotonic, arbitrary epoch) of the last scheduling event.
is_blocked: boolIf true the stream is temporarily suspended and will not be scheduled.
deadline: u64Optional deadline value (lower = more urgent; used by EDF policy).
htb_tokens: i64Token bucket for HTB policy: current token balance in bytes.
htb_rate: u64Token refill rate in bytes per “tick” for HTB.
htb_burst: u64Maximum burst size in bytes for HTB.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpsStream
impl RefUnwindSafe for SpsStream
impl Send for SpsStream
impl Sync for SpsStream
impl Unpin for SpsStream
impl UnsafeUnpin for SpsStream
impl UnwindSafe for SpsStream
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more