Skip to main content

Module state

Module state 

Source
Expand description

worker-local state for the RTC engine transport layer

this module holds the mutable facts that must stay local to one packet-loop worker:

room and router intent
  |
  v
worker commands
  |
  v
PacketLoopState
  |
  +--> str0m sessions
  +--> media route indexes
  +--> demux hints
  +--> packet-loop schedules

PacketLoopState is the authoritative hot-path state callers outside the worker observe selected facts through RtcSnapshotState, bitrate counters and diagnostics instead of mutating this state directly

Re-exportsยง

pub use crate::engine::media_transport::TransportSessionHealth;

Structsยง

PacketLoopState ๐Ÿ”’
authoritative mutable state for one RTC packet-loop worker
PendingRecvStream ๐Ÿ”’
receive stream identity staged before a producer media addition is answered
RtcNackTotals ๐Ÿ”’
RtcSessionState ๐Ÿ”’
worker-local [str0m::Rtc] state for one transport session
RtcSnapshotState
read-side RTC transport snapshot shared outside the packet loop
RtcpIngressBudget ๐Ÿ”’
SessionSdpNegotiationState ๐Ÿ”’
offer and answer staging state for one worker-local session
SharedRtcSocket ๐Ÿ”’
shared UDP socket owned by one RTC worker

Constantsยง

NANOS_PER_SECOND ๐Ÿ”’
RTCP_INGRESS_BUDGET_CAPACITY_BYTES ๐Ÿ”’
RTCP_INGRESS_BUDGET_REFILL_BYTES_PER_SECOND ๐Ÿ”’

Functionsยง

muxed_rtp_ssrc ๐Ÿ”’
next_live_deadline ๐Ÿ”’
pop_due_deadline ๐Ÿ”’