#[non_exhaustive]pub enum ReaderSeekSignal {
Landed {
landed_byte: Option<u64>,
preroll: PrerollHint,
},
PastEof,
}Expand description
Lightweight seek-side signal fed into DecoderHooks::on_seek.
Mirrors the meaningful shape of DecoderSeekOutcome (in
kithara-decode) for event-emission purposes only.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Landed
Decoder parked at the destination. landed_byte is the absolute
byte offset the decoder picked (granule-aligned), when the
backend exposes one. preroll hints at an earlier byte position
the source must keep available so the decoder can warm its MDCT
state before emitting the first user-visible chunk. HLS uses this
to delay segment eviction; random-access sources (file) ignore it.
PastEof
Seek target was past the decoder’s known duration. The decoder is now parked at EOF.
Trait Implementations§
Source§impl Clone for ReaderSeekSignal
impl Clone for ReaderSeekSignal
Source§fn clone(&self) -> ReaderSeekSignal
fn clone(&self) -> ReaderSeekSignal
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 ReaderSeekSignal
impl Debug for ReaderSeekSignal
Source§impl PartialEq for ReaderSeekSignal
impl PartialEq for ReaderSeekSignal
Source§fn eq(&self, other: &ReaderSeekSignal) -> bool
fn eq(&self, other: &ReaderSeekSignal) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ReaderSeekSignal
impl Eq for ReaderSeekSignal
impl StructuralPartialEq for ReaderSeekSignal
Auto Trait Implementations§
impl Freeze for ReaderSeekSignal
impl RefUnwindSafe for ReaderSeekSignal
impl Send for ReaderSeekSignal
impl Sync for ReaderSeekSignal
impl Unpin for ReaderSeekSignal
impl UnsafeUnpin for ReaderSeekSignal
impl UnwindSafe for ReaderSeekSignal
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