[][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.

TimeoutAuthKey

No authentication key.

InternalConnectionTerminatedKilled

Entity killed.

InvalidServerModInitFailedBadStateNoDataVersion

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.

Methods

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]

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

Performs copy-assignment from source. Read more

impl From<Code> for PAErr[src]

impl From<PAErr> for Code[src]

impl PartialEq<Code> for Code[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Copy for Code[src]

impl Eq for Code[src]

impl Debug for Code[src]

Auto Trait Implementations

impl Sync for Code

impl Send for Code

impl Unpin for Code

impl RefUnwindSafe for Code

impl UnwindSafe for Code

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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