pub enum AlsaError {
Show 20 variants
DeviceNotFound {
device_id: u32,
},
DeviceAlreadyOpen {
device_id: u32,
},
DeviceNotOpen {
device_id: u32,
},
InvalidStateTransition {
current: PcmState,
requested: PcmState,
},
HwParamsNotSet,
SwParamsNotSet,
Overrun {
lost_frames: u32,
},
Underrun {
missed_frames: u32,
},
InvalidFormat,
InvalidSampleRate {
rate: u32,
},
InvalidChannels {
count: u8,
},
InvalidBufferSize {
requested: u32,
max: u32,
},
InvalidPeriodSize {
requested: u32,
buffer_size: u32,
},
BufferFull,
BufferEmpty,
MixerControlNotFound {
id: u32,
},
MixerValueOutOfRange {
value: i32,
min: i32,
max: i32,
},
TooManyDevices,
WrongDirection,
DeviceBusy {
device_id: u32,
},
}Expand description
ALSA subsystem error type
Variants§
DeviceNotFound
Device not found
Fields
§
device_id: u32DeviceAlreadyOpen
Device is already open
Fields
§
device_id: u32DeviceNotOpen
Device is not open
Fields
§
device_id: u32InvalidStateTransition
Invalid PCM state transition
HwParamsNotSet
Hardware parameters not configured
SwParamsNotSet
Software parameters not configured
Overrun
Buffer overrun (capture) – data was lost
Fields
§
lost_frames: u32Underrun
Buffer underrun (playback) – device starved
Fields
§
missed_frames: u32InvalidFormat
Invalid sample format
InvalidSampleRate
Invalid sample rate
Fields
§
rate: u32InvalidChannels
Invalid channel count
Fields
§
count: u8InvalidBufferSize
Invalid buffer size
InvalidPeriodSize
Invalid period size
BufferFull
Buffer is full (write would block)
BufferEmpty
Buffer is empty (read would block)
MixerControlNotFound
Mixer control not found
Fields
§
id: u32MixerValueOutOfRange
Value out of range for mixer control
TooManyDevices
Maximum device limit reached
WrongDirection
Operation not supported for this stream direction
DeviceBusy
Device busy (in use by another client)
Fields
§
device_id: u32Trait Implementations§
Source§impl From<AlsaError> for AudioError
impl From<AlsaError> for AudioError
impl Copy for AlsaError
impl Eq for AlsaError
impl StructuralPartialEq for AlsaError
Auto Trait Implementations§
impl Freeze for AlsaError
impl RefUnwindSafe for AlsaError
impl Send for AlsaError
impl Sync for AlsaError
impl Unpin for AlsaError
impl UnwindSafe for AlsaError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)