pub enum State {
Idle,
Starting,
Running,
Failed,
}Expand description
Lifecycle phase of a capture or playback: Idle (no run yet, or the last run stopped
cleanly), Starting (worker spawned, first PulseAudio session not yet up), Running
(connected, or reconnecting mid-run, with no stop pending), or Failed (the last run
ended in error; last_error says why). A run that was stopped reads Idle again even
while its thread is still winding down.
Variants§
Implementations§
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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