#[non_exhaustive]pub struct PullLimits {
pub policy: Policy,
pub limits: Limits,
pub max_segment_bytes: usize,
pub max_inflight_segments: usize,
pub max_segment_failures: u32,
pub max_init_failures: u32,
}Expand description
The knobs every segment-pull source shares (DESIGN 6.4, “shared with
HLS”): the session owns them in its own config and passes them in; they
are deliberately not part of DashConfig.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.policy: PolicyRepresentation and AdaptationSet selection policy.
limits: LimitsMPD parse bounds; limits.max_bytes is the MPD body cap.
max_segment_bytes: usizeLargest accepted init, index or segment body, bytes.
max_inflight_segments: usizeSegment requests kept outstanding at once, counting bodies that have
arrived but are not yet delivered; 0 behaves as 1.
max_segment_failures: u32Consecutive failures of one segment after which a static presentation
ends with a fatal error; 0 makes the first failure final and
u32::MAX retries forever (the broadcast-client rule).
max_init_failures: u32The same for the init and index resources.
Implementations§
Source§impl PullLimits
impl PullLimits
Sourcepub fn validate(&self) -> Result<(), PullLimitsError>
pub fn validate(&self) -> Result<(), PullLimitsError>
Trait Implementations§
Source§impl Clone for PullLimits
impl Clone for PullLimits
Source§impl Debug for PullLimits
impl Debug for PullLimits
Source§impl Default for PullLimits
impl Default for PullLimits
Source§impl PartialEq for PullLimits
impl PartialEq for PullLimits
impl StructuralPartialEq for PullLimits
Auto Trait Implementations§
impl Freeze for PullLimits
impl RefUnwindSafe for PullLimits
impl Send for PullLimits
impl Sync for PullLimits
impl Unpin for PullLimits
impl UnsafeUnpin for PullLimits
impl UnwindSafe for PullLimits
Blanket Implementations§
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