Enum libpulse_binding::def::SourceState [−][src]
#[repr(C)]pub enum SourceState { Invalid, Running, Idle, Suspended, }
Source state.
Variants
InvalidThis state is used when the server does not support source state introspection.
RunningRunning, source is recording and used by at least one non-corked source-output.
IdleWhen idle, the source is still recording but there is no non-corked source-output.
SuspendedWhen suspended, actual source access can be closed, for instance.
Methods
impl SourceState[src]
impl SourceStatepub fn is_opened(self) -> bool[src]
pub fn is_opened(self) -> boolReturns true if source is recording: running or idle.
pub fn is_running(self) -> bool[src]
pub fn is_running(self) -> boolReturns true if source is running.
Trait Implementations
impl Debug for SourceState[src]
impl Debug for SourceStatefn 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 SourceState[src]
impl Copy for SourceStateimpl Clone for SourceState[src]
impl Clone for SourceStatefn clone(&self) -> SourceState[src]
fn clone(&self) -> SourceStateReturns 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 SourceState[src]
impl PartialEq for SourceStatefn eq(&self, other: &SourceState) -> bool[src]
fn eq(&self, other: &SourceState) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for SourceState[src]
impl Eq for SourceStateimpl From<SourceState> for pa_source_state_t[src]
impl From<SourceState> for pa_source_state_tfn from(s: SourceState) -> Self[src]
fn from(s: SourceState) -> SelfPerforms the conversion.
impl From<pa_source_state_t> for SourceState[src]
impl From<pa_source_state_t> for SourceStatefn from(s: pa_source_state_t) -> Self[src]
fn from(s: pa_source_state_t) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for SourceState
impl Send for SourceStateimpl Sync for SourceState
impl Sync for SourceState