#[non_exhaustive]pub enum Reason {
Startup,
NoData,
DataArriving,
Discontinuity,
Reprime,
}Expand description
Why the controller is not playing.
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.
Startup
First fill after construction/reset.
NoData
Lead exhausted and no chunk for nodata_after_us (or the source ended).
DataArriving
Lead exhausted while chunks were still arriving.
Discontinuity
Baseline reset (reconnect, sync loss, PCR discontinuity).
Reprime
Voluntary re-prime (reprime_floor_us).
Implementations§
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Forget for Reason
impl Freeze for Reason
impl Move for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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