#[non_exhaustive]#[repr(u32)]pub enum State {
Open = 0,
Setup = 1,
Prepare = 2,
Running = 3,
Xrun = 4,
Draining = 5,
Paused = 6,
Suspended = 7,
Disconnected = 8,
Private1 = 1_024,
}Available on crate feature
alsa only.Expand description
The state of the Pcm.
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.
Open = 0
Open.
Setup = 1
Setup installed.
Prepare = 2
Ready to start.
Running = 3
Running.
Xrun = 4
Stopped: underrun (playback) or overrun (capture) detected.
Draining = 5
Draining: running (playback) or stopped (capture).
Paused = 6
Paused.
Suspended = 7
Hardware is suspended.
Disconnected = 8
Hardware is disconnected.
Private1 = 1_024
Private - used internally in the library - do not use.
Implementations§
Trait Implementations§
Source§impl Ord for State
impl Ord for State
Source§impl PartialOrd for State
impl PartialOrd for State
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 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