#[non_exhaustive]pub enum SourcePhase {
Cancelled,
Eof,
Ready,
Seeking,
Waiting,
WaitingDemand,
WaitingMetadata,
}Expand description
Phase of a source’s wait/read lifecycle.
Each Source implementation returns the current phase from its
phase() method — a point-in-time snapshot for external observers
(audio pipeline, tracing, UI).
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.
Cancelled
Cancelled — terminal, source will not produce more data.
Eof
End of stream reached.
Ready
Requested range is available for non-blocking read.
Seeking
Active seek in progress — decoder should be interrupted.
Waiting
Default: data not yet available, no specific sub-state.
WaitingDemand
On-demand request already in flight for this seek epoch.
WaitingMetadata
Metadata lookup needed before data can be requested.
Trait Implementations§
Source§impl Clone for SourcePhase
impl Clone for SourcePhase
Source§fn clone(&self) -> SourcePhase
fn clone(&self) -> SourcePhase
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 SourcePhase
impl Debug for SourcePhase
Source§impl Default for SourcePhase
impl Default for SourcePhase
Source§fn default() -> SourcePhase
fn default() -> SourcePhase
Returns the “default value” for a type. Read more
Source§impl PartialEq for SourcePhase
impl PartialEq for SourcePhase
Source§fn eq(&self, other: &SourcePhase) -> bool
fn eq(&self, other: &SourcePhase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SourcePhase
impl Eq for SourcePhase
impl StructuralPartialEq for SourcePhase
Auto Trait Implementations§
impl Freeze for SourcePhase
impl RefUnwindSafe for SourcePhase
impl Send for SourcePhase
impl Sync for SourcePhase
impl Unpin for SourcePhase
impl UnsafeUnpin for SourcePhase
impl UnwindSafe for SourcePhase
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