pub struct StreamPending {
pub len: Option<u64>,
pub reason: PendingReason,
pub phase: SourcePhase,
pub flushing: bool,
pub variant_fence: bool,
pub epoch: u64,
pub pos: u64,
pub want: usize,
}Expand description
Typed payload of an io::Error (kind ErrorKind::Interrupted)
emitted by impl Read for Stream when the underlying source could
not satisfy the read this call. Both SeekPending and
NotReady/Retry surface as Interrupted so demuxers (notably
Symphonia’s fragmented MP4 reader) treat the pause as a transient
cooperative interruption and let kithara-decode::is_seek_pending_io
classify the failure correctly — the previous WouldBlock mapping
was treated as a hard “would block” by Symphonia’s seek path and
corrupted the demuxer cursor on partial reads. Carries the
PendingReason verbatim plus a snapshot of source/timeline state
at the wrap site, so callers downcasting from io::Error recover
both what stalled and why without having to instrument their
own decoder.
Fields§
§len: Option<u64>§reason: PendingReason§phase: SourcePhase§flushing: bool§variant_fence: bool§epoch: u64§pos: u64§want: usizeTrait Implementations§
Source§impl Clone for StreamPending
impl Clone for StreamPending
Source§fn clone(&self) -> StreamPending
fn clone(&self) -> StreamPending
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreamPending
impl Debug for StreamPending
Source§impl Display for StreamPending
impl Display for StreamPending
Source§impl Error for StreamPending
impl Error for StreamPending
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()