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]
fn is_opened(self) -> bool[src]
Returns true if source is recording: running or idle.
fn is_running(self) -> bool[src]
Returns true if source is running.
Trait Implementations
impl Debug for SourceState[src]
impl Copy for SourceState[src]
impl Clone for SourceState[src]
fn clone(&self) -> SourceState[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 SourceState[src]
fn eq(&self, __arg_0: &SourceState) -> bool[src]
This 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]
This method tests for !=.
impl Eq for SourceState[src]
impl From<pa_source_state_t> for SourceState[src]
fn from(s: pa_source_state_t) -> Self[src]
Performs the conversion.