#[non_exhaustive]pub enum PendingReason {
Buffering,
SeekInProgress,
StreamBackpressure,
}Expand description
Reason a ReadOutcome::Pending / ChunkOutcome::Pending was
returned — i.e. why the reader did not advance this call. Each
variant maps to a distinct caller action; there is no overlap and
no string-matching required.
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.
Buffering
Producer ringbuf is empty: the consumer has caught up to the producer’s most recent chunk and is waiting for the next one (mid-stream async pause, post-seek refill).
SeekInProgress
A seek was issued; the consumer is waiting for the producer to acknowledge the new epoch and deliver post-seek frames. Old pre-seek frames have been drained.
StreamBackpressure
Upstream stream-layer surfaced a pending status (network stall, retry, source-level backpressure). The reader will progress once the stream resumes.
Trait Implementations§
Source§impl Clone for PendingReason
impl Clone for PendingReason
Source§fn clone(&self) -> PendingReason
fn clone(&self) -> PendingReason
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 PendingReason
impl Debug for PendingReason
Source§impl PartialEq for PendingReason
impl PartialEq for PendingReason
Source§fn eq(&self, other: &PendingReason) -> bool
fn eq(&self, other: &PendingReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PendingReason
impl Eq for PendingReason
impl StructuralPartialEq for PendingReason
Auto Trait Implementations§
impl Freeze for PendingReason
impl RefUnwindSafe for PendingReason
impl Send for PendingReason
impl Sync for PendingReason
impl Unpin for PendingReason
impl UnsafeUnpin for PendingReason
impl UnwindSafe for PendingReason
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