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