#[non_exhaustive]pub struct PlanOptions<'a> {
pub use_availability_time_offset: bool,
pub horizon_utc_us: Option<i128>,
pub index: Option<(&'a SegmentIndexBox, u64)>,
}Expand description
Knobs of plan_representation.
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.use_availability_time_offset: boolApply @availabilityTimeOffset (early requests; LL-DASH).
horizon_utc_us: Option<i128>FetchTime + minimumUpdatePeriod in UTC microseconds, for a trailing
negative @r of a Period with no known end.
index: Option<(&'a SegmentIndexBox, u64)>The parsed sidx and its anchor, for a SegmentBase Representation.
Implementations§
Source§impl<'a> PlanOptions<'a>
impl<'a> PlanOptions<'a>
Sourcepub fn with_index(self, sidx: &'a SegmentIndexBox, anchor: u64) -> Self
pub fn with_index(self, sidx: &'a SegmentIndexBox, anchor: u64) -> Self
Supply the parsed sidx and its anchor offset.
Sourcepub fn with_horizon_utc_us(self, horizon_utc_us: i128) -> Self
pub fn with_horizon_utc_us(self, horizon_utc_us: i128) -> Self
Set the horizon of a trailing negative @r.
Sourcepub fn with_availability_time_offset(self, apply: bool) -> Self
pub fn with_availability_time_offset(self, apply: bool) -> Self
Opt into applying @availabilityTimeOffset.
Trait Implementations§
Source§impl<'a> Clone for PlanOptions<'a>
impl<'a> Clone for PlanOptions<'a>
Source§impl<'a> Debug for PlanOptions<'a>
impl<'a> Debug for PlanOptions<'a>
Auto Trait Implementations§
impl<'a> Forget for PlanOptions<'a>
impl<'a> Freeze for PlanOptions<'a>
impl<'a> Move for PlanOptions<'a>
impl<'a> RefUnwindSafe for PlanOptions<'a>
impl<'a> Send for PlanOptions<'a>
impl<'a> Sync for PlanOptions<'a>
impl<'a> Unpin for PlanOptions<'a>
impl<'a> UnsafeUnpin for PlanOptions<'a>
impl<'a> UnwindSafe for PlanOptions<'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