pub struct StreamFrameLimits {
pub max_frame_payload_bytes: usize,
pub max_stream_frames: usize,
pub max_inflight_frames: usize,
pub max_duration_ms: u64,
pub max_rate_hz: u32,
}Expand description
Resource bounds applied while encoding a stream into server frames.
Mirrors StreamRemoteLimits from sim-lib-stream-core in fabric terms;
once a bound is crossed the encoder appends a limit diagnostic frame and
stops rather than emitting an unbounded run of chunks. The Default impl
inherits the stream-core remote defaults.
Fields§
§max_frame_payload_bytes: usizeMaximum encoded payload size, in bytes, allowed for a single frame.
max_stream_frames: usizeMaximum number of chunk frames emitted for one stream.
max_inflight_frames: usizeMaximum number of frames allowed in flight at once.
max_duration_ms: u64Maximum stream duration, in milliseconds, before truncation.
max_rate_hz: u32Maximum stream rate, in hertz, used to derive the effective frame limit.
Implementations§
Source§impl StreamFrameLimits
impl StreamFrameLimits
Sourcepub fn remote_limits(self) -> StreamRemoteLimits
pub fn remote_limits(self) -> StreamRemoteLimits
Converts these fabric limits into a stream-core StreamRemoteLimits.
The binary-payload bound is filled from the stream-core default.
Trait Implementations§
Source§impl Clone for StreamFrameLimits
impl Clone for StreamFrameLimits
Source§fn clone(&self) -> StreamFrameLimits
fn clone(&self) -> StreamFrameLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StreamFrameLimits
Source§impl Debug for StreamFrameLimits
impl Debug for StreamFrameLimits
Source§impl Default for StreamFrameLimits
impl Default for StreamFrameLimits
impl Eq for StreamFrameLimits
Source§impl PartialEq for StreamFrameLimits
impl PartialEq for StreamFrameLimits
Source§fn eq(&self, other: &StreamFrameLimits) -> bool
fn eq(&self, other: &StreamFrameLimits) -> bool
self and other values to be equal, and is used by ==.