#[non_exhaustive]pub struct SourceSeekAnchor {
pub segment_start: Duration,
pub segment_end: Option<Duration>,
pub segment_index: Option<u32>,
pub variant_index: Option<usize>,
pub byte_offset: u64,
}Expand description
Time-first seek anchor resolved by a segmented source.
Represents a deterministic mapping from target playback time to a byte position and segment context inside the source.
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.segment_start: Duration§segment_end: Option<Duration>§segment_index: Option<u32>§variant_index: Option<usize>§byte_offset: u64Implementations§
Source§impl SourceSeekAnchor
impl SourceSeekAnchor
Sourcepub fn builder() -> SourceSeekAnchorBuilder
pub fn builder() -> SourceSeekAnchorBuilder
Create an instance of SourceSeekAnchor using the builder syntax
Trait Implementations§
Source§impl Clone for SourceSeekAnchor
impl Clone for SourceSeekAnchor
Source§fn clone(&self) -> SourceSeekAnchor
fn clone(&self) -> SourceSeekAnchor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceSeekAnchor
impl Debug for SourceSeekAnchor
Source§impl Default for SourceSeekAnchor
impl Default for SourceSeekAnchor
Source§fn default() -> SourceSeekAnchor
fn default() -> SourceSeekAnchor
Returns the “default value” for a type. Read more
Source§impl PartialEq for SourceSeekAnchor
impl PartialEq for SourceSeekAnchor
Source§fn eq(&self, other: &SourceSeekAnchor) -> bool
fn eq(&self, other: &SourceSeekAnchor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SourceSeekAnchor
impl Eq for SourceSeekAnchor
impl StructuralPartialEq for SourceSeekAnchor
Auto Trait Implementations§
impl Freeze for SourceSeekAnchor
impl RefUnwindSafe for SourceSeekAnchor
impl Send for SourceSeekAnchor
impl Sync for SourceSeekAnchor
impl Unpin for SourceSeekAnchor
impl UnsafeUnpin for SourceSeekAnchor
impl UnwindSafe for SourceSeekAnchor
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