#[non_exhaustive]pub struct PlanInput<'a> {
pub representation_id: &'a str,
pub bandwidth: u64,
pub info: &'a SegmentInfo,
pub period_start_us: i128,
pub period_end_us: Option<i128>,
pub dynamic: Option<DynamicContext>,
pub index: Option<(&'a SegmentIndexBox, u64)>,
}Expand description
Everything SegmentPlan::build needs.
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.representation_id: &'a strRepresentation@id ($RepresentationID$).
bandwidth: u64Representation@bandwidth ($Bandwidth$).
info: &'a SegmentInfoThe resolved Segment information.
period_start_us: i128PeriodStart in microseconds from the presentation start.
period_end_us: Option<i128>The Period end in the same domain, when known.
dynamic: Option<DynamicContext>Dynamic-MPD context; None for a static MPD.
index: Option<(&'a SegmentIndexBox, u64)>The parsed sidx and the anchor offset (SegmentBase only).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PlanInput<'a>
impl<'a> RefUnwindSafe for PlanInput<'a>
impl<'a> Send for PlanInput<'a>
impl<'a> Sync for PlanInput<'a>
impl<'a> Unpin for PlanInput<'a>
impl<'a> UnsafeUnpin for PlanInput<'a>
impl<'a> UnwindSafe for PlanInput<'a>
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