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

#[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

Timeout.

AuthKey

No authentication key.

Internal

Internal.

ConnectionTerminated

Connection terminated.

Killed

Entity killed.

InvalidServer

Invalid server.

ModInitFailed

Module init failed.

BadState

Bad state.

NoData

No data.

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 Error for Code[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.

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

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.