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 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.
Methods
impl Code
[src]
Trait Implementations
impl Debug for Code
[src]
impl Copy for Code
[src]
impl Clone for Code
[src]
fn clone(&self) -> Code
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Code
[src]
fn eq(&self, __arg_0: &Code) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.