pub enum DecoderChunkOutcome {
Chunk(PcmChunk),
Pending(PendingReason),
Eof,
}Expand description
Outcome of an Decoder::next_chunk call.
Mirrors kithara_stream::ReadOutcome / InputReadOutcome in
shape so every layer of the pipeline carries the same three-way
distinction (progress | pending | terminal). Pending carries
the typed PendingReason — typically
PendingReason::SeekPending when an in-flight seek aborted the
underlying read, or PendingReason::NotReady when the source
signalled transient backpressure.
Variants§
Chunk(PcmChunk)
Decoded PCM chunk.
Pending(PendingReason)
Decoder is alive but produced no chunk this call. See
PendingReason for the precise cause.
Eof
Natural end of stream — no more chunks will be produced.
Implementations§
Trait Implementations§
Source§impl Debug for DecoderChunkOutcome
impl Debug for DecoderChunkOutcome
Source§impl TryFrom<DecoderChunkOutcome> for PcmChunk
impl TryFrom<DecoderChunkOutcome> for PcmChunk
Source§type Error = DecoderChunkOutcome
type Error = DecoderChunkOutcome
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for DecoderChunkOutcome
impl !RefUnwindSafe for DecoderChunkOutcome
impl Send for DecoderChunkOutcome
impl Sync for DecoderChunkOutcome
impl Unpin for DecoderChunkOutcome
impl UnsafeUnpin for DecoderChunkOutcome
impl !UnwindSafe for DecoderChunkOutcome
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