Struct libpulse_binding::error::PAErr [−][src]
#[repr(C)]pub struct PAErr(pub i32);
A wrapper around integer errors returned by PulseAudio. Can be converted to a Code
variant for
comparison purposes if desired.
Methods
impl PAErr
[src]
impl PAErr
pub fn to_string(&self) -> Option<String>
[src]
pub fn to_string(&self) -> Option<String>
Convert an integer error value, as returned by many PA C API functions, to a human readable string.
Trait Implementations
impl Debug for PAErr
[src]
impl Debug for PAErr
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for PAErr
[src]
impl Copy for PAErr
impl Clone for PAErr
[src]
impl Clone for PAErr
fn clone(&self) -> PAErr
[src]
fn clone(&self) -> PAErr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for PAErr
[src]
impl PartialEq for PAErr
fn eq(&self, other: &PAErr) -> bool
[src]
fn eq(&self, other: &PAErr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PAErr) -> bool
[src]
fn ne(&self, other: &PAErr) -> bool
This method tests for !=
.
impl Eq for PAErr
[src]
impl Eq for PAErr
impl Display for PAErr
[src]
impl Display for PAErr
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Code> for PAErr
[src]
impl From<Code> for PAErr
impl From<PAErr> for Code
[src]
impl From<PAErr> for Code