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 PAErrpub 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 PAErrfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for PAErr[src]
impl Copy for PAErrimpl Clone for PAErr[src]
impl Clone for PAErrfn clone(&self) -> PAErr[src]
fn clone(&self) -> PAErrReturns 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 PAErrfn eq(&self, other: &PAErr) -> bool[src]
fn eq(&self, other: &PAErr) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for PAErr[src]
impl Eq for PAErrimpl Display for PAErr[src]
impl Display for PAErrfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<Code> for PAErr[src]
impl From<Code> for PAErrimpl From<PAErr> for Code[src]
impl From<PAErr> for Code