[][src]Enum libpulse_binding::error::Code

#[repr(C)]pub enum Code {
    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,
}

These represent errors returned by many of the underlying PulseAudio C functions.

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.

Implementations

impl Code[src]

pub fn to_string(self) -> Option<String>[src]

Converts a Code to a human readable string.

Trait Implementations

impl Clone for Code[src]

impl Copy for Code[src]

impl Debug for Code[src]

impl Display for Code[src]

impl Eq for Code[src]

impl From<Code> for pa_error_code_t[src]

impl From<Code> for PAErr[src]

impl From<pa_error_code_t> for Code[src]

impl FromPrimitive for Code[src]

impl PartialEq<Code> for Code[src]

impl StructuralEq for Code[src]

impl StructuralPartialEq for Code[src]

impl ToPrimitive for Code[src]

impl TryFrom<PAErr> for Code[src]

type Error = ()

The type returned in the event of a conversion error.

pub fn try_from(e: PAErr) -> Result<Self, Self::Error>[src]

Attempts to convert the wrapped integer error value to a Code variant.

Returns Err(()) if the value cannot be mapped.

Auto Trait Implementations

impl RefUnwindSafe for Code

impl Send for Code

impl Sync for Code

impl Unpin for Code

impl UnwindSafe for Code

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.