#[non_exhaustive]pub enum ReaderChunkSignal {
Chunk,
Pending(PendingReason),
Eof,
}Expand description
Lightweight read-side signal fed into DecoderHooks::on_chunk.
Mirrors the meaningful shape of DecoderChunkOutcome (in
kithara-decode) without the PCM payload — hooks emit events based
on byte-cursor state from the Timeline, not on
the raw audio frames.
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.
Chunk
Decoder produced a PCM chunk.
Pending(PendingReason)
Decoder is alive but produced nothing this call (typed reason).
Eof
Natural end of stream — no more chunks will arrive.
Trait Implementations§
Source§impl Clone for ReaderChunkSignal
impl Clone for ReaderChunkSignal
Source§fn clone(&self) -> ReaderChunkSignal
fn clone(&self) -> ReaderChunkSignal
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 ReaderChunkSignal
impl Debug for ReaderChunkSignal
Source§impl PartialEq for ReaderChunkSignal
impl PartialEq for ReaderChunkSignal
Source§fn eq(&self, other: &ReaderChunkSignal) -> bool
fn eq(&self, other: &ReaderChunkSignal) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ReaderChunkSignal
impl Eq for ReaderChunkSignal
impl StructuralPartialEq for ReaderChunkSignal
Auto Trait Implementations§
impl Freeze for ReaderChunkSignal
impl RefUnwindSafe for ReaderChunkSignal
impl Send for ReaderChunkSignal
impl Sync for ReaderChunkSignal
impl Unpin for ReaderChunkSignal
impl UnsafeUnpin for ReaderChunkSignal
impl UnwindSafe for ReaderChunkSignal
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