Enum libpulse_sys::error::pa_error_code_t[][src]

#[repr(C)]pub enum pa_error_code_t {
    Ok,
    Access,
    Command,
    Invalid,
    Exist,
    NoEntity,
    ConnectionRefused,
    Protocol,
    Timeout,
    AuthKey,
    Internal,
    ConnectionTerminated,
    Killed,
    InvalidServer,
    ModInitFailed,
    BadState,
    NoData,
    Version,
    TooLarge,
    NotSupported,
    Unknown,
    NoExtension,
    Obsolete,
    NotImplemented,
    Forked,
    IO,
    Busy,
}

Error code.

These represent the i32 error codes returned by many of the underlying PulseAudio C functions. Beware, these enum values are positive values, whilst PA functions return them in negative form, i.e. the Invalid variant here has a value of 3, while functions returning this error code return -3. (This is identical to the enum provided in the PA C API).

Variants

Ok

No error.

Access

Access failure.

Command

Unknown command.

Invalid

Invalid argument.

Exist

Entity exists.

NoEntity

No such entity.

ConnectionRefused

Connection refused.

Protocol

Protocol error.

Timeout
AuthKey

No authentication key.

Internal
ConnectionTerminated
Killed

Entity killed.

InvalidServer
ModInitFailed
BadState
NoData
Version

Incompatible protocol version.

TooLarge

Data too large.

NotSupported

Operation not supported.

Unknown

The error code was unknown to the client.

NoExtension

Extension does not exist.

Obsolete

Obsolete functionality.

NotImplemented

Missing implementation.

Forked

The caller forked without calling execve() and tried to reuse the context.

IO

An IO error happened.

Busy

Device or resource busy.

Trait Implementations

impl Clone for pa_error_code_t[src]

impl Copy for pa_error_code_t[src]

impl Debug for pa_error_code_t[src]

impl Eq for pa_error_code_t[src]

impl FromPrimitive for pa_error_code_t[src]

impl PartialEq<pa_error_code_t> for pa_error_code_t[src]

impl StructuralEq for pa_error_code_t[src]

impl StructuralPartialEq for pa_error_code_t[src]

impl ToPrimitive for pa_error_code_t[src]

Auto Trait Implementations

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, 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.