Enum coreaudio::error::Error [] [src]

pub enum Error {
    Unspecified,
    SystemSoundClientMessageTimedOut,
    NoMatchingDefaultAudioUnitFound,
    RenderCallbackBufferFormatDoesNotMatchAudioUnitStreamFormat,
    NoKnownSubtype,
    Audio(AudioError),
    AudioCodec(AudioCodecError),
    AudioFormat(AudioFormatError),
    AudioUnit(AudioUnitError),
    Unknown(OSStatus),
}

A wrapper around all possible Core Audio errors.

Variants

UnspecifiedSystemSoundClientMessageTimedOutNoMatchingDefaultAudioUnitFoundRenderCallbackBufferFormatDoesNotMatchAudioUnitStreamFormatNoKnownSubtypeAudio(AudioError)AudioCodec(AudioCodecError)AudioFormat(AudioFormatError)AudioUnit(AudioUnitError)Unknown(OSStatus)

Methods

impl Error
[src]

fn from_os_status(os_status: OSStatus) -> Result<()Error>

Convert an OSStatus to a std Rust Result.

fn to_os_status(&self) -> OSStatus

Convert an Error to an OSStatus.

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Error
[src]

fn clone(&self) -> Error

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

The lower-level cause of this error, if any. Read more