pub enum AudioError {
DeviceNotFound,
DeviceBusy,
InvalidConfig {
reason: &'static str,
},
BufferOverrun,
BufferUnderrun,
NotStarted,
AlreadyStarted,
UnsupportedFormat,
IoError,
}Expand description
Common audio error type for all audio backends
Variants§
DeviceNotFound
Requested device was not found
DeviceBusy
Device is in use by another client
InvalidConfig
Configuration is invalid
Fields
§
reason: &'static strBufferOverrun
Capture buffer overrun – data was lost
BufferUnderrun
Playback buffer underrun – device starved
NotStarted
Device has not been started
AlreadyStarted
Device is already running
UnsupportedFormat
Requested format is not supported by this device
IoError
Low-level I/O error communicating with hardware
Trait Implementations§
Source§impl Clone for AudioError
impl Clone for AudioError
Source§fn clone(&self) -> AudioError
fn clone(&self) -> AudioError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioError
impl Debug for AudioError
Source§impl Display for AudioError
impl Display for AudioError
Source§impl From<AlsaError> for AudioError
impl From<AlsaError> for AudioError
Source§impl PartialEq for AudioError
impl PartialEq for AudioError
impl StructuralPartialEq for AudioError
Auto Trait Implementations§
impl Freeze for AudioError
impl RefUnwindSafe for AudioError
impl Send for AudioError
impl Sync for AudioError
impl Unpin for AudioError
impl UnwindSafe for AudioError
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)