[][src]Enum portaudio_rs::PaError

#[repr(i32)]
pub enum PaError {
    NotInitialized,
    UnanticipatedHostError,
    InvalidChannelCount,
    InvalidSampleRate,
    InvalidDevice,
    InvalidFlag,
    SampleFormatNotSupported,
    BadIODeviceCombination,
    InsufficientMemory,
    BufferTooBig,
    BufferTooSmall,
    NullCallback,
    BadStreamPtr,
    TimedOut,
    InternalError,
    DeviceUnavailable,
    IncompatibleHostApiSpecificStreamInfo,
    StreamIsStopped,
    StreamIsNotStopped,
    InputOverflowed,
    OutputUnderflowed,
    HostApiNotFound,
    InvalidHostApi,
    CanNotReadFromACallbackStream,
    CanNotWriteToACallbackStream,
    CanNotReadFromAnOutputOnlyStream,
    CanNotWriteToAnInputOnlyStream,
    IncompatibleStreamHostApi,
    BadBufferPtr,
    UnknownError,
}

Enum for all possible errors given by PortAudio

The NoError value (0) is not present since the Result type can be used then.

Variants

NotInitialized
UnanticipatedHostError
InvalidChannelCount
InvalidSampleRate
InvalidDevice
InvalidFlag
SampleFormatNotSupported
BadIODeviceCombination
InsufficientMemory
BufferTooBig
BufferTooSmall
NullCallback
BadStreamPtr
TimedOut
InternalError
DeviceUnavailable
IncompatibleHostApiSpecificStreamInfo
StreamIsStopped
StreamIsNotStopped
InputOverflowed
OutputUnderflowed
HostApiNotFound
InvalidHostApi
CanNotReadFromACallbackStream
CanNotWriteToACallbackStream
CanNotReadFromAnOutputOnlyStream
CanNotWriteToAnInputOnlyStream
IncompatibleStreamHostApi
BadBufferPtr
UnknownError

Added variant for when FromPrimitive returns None

Methods

impl PaError[src]

pub fn from_i32(num: i32) -> PaError[src]

Get the enum value corresponding to the given i32

Trait Implementations

impl Clone for PaError[src]

impl Copy for PaError[src]

impl Debug for PaError[src]

impl Display for PaError[src]

impl Error for PaError[src]

impl PartialEq<PaError> for PaError[src]

impl StructuralPartialEq for PaError[src]

Auto Trait Implementations

impl RefUnwindSafe for PaError

impl Send for PaError

impl Sync for PaError

impl Unpin for PaError

impl UnwindSafe for PaError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.