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

Convert a Code to a human readable string.

Trait Implementations

impl Copy for Code[src]

impl PartialEq<Code> for Code[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl From<Code> for PAErr[src]

impl From<PAErr> for Code[src]

impl Clone for Code[src]

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

Performs copy-assignment from source. Read more

impl Eq for Code[src]

impl Debug for Code[src]

Auto Trait Implementations

impl Send for Code

impl Sync for Code

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]