Enum libpulse_binding::def::SinkState
[−]
[src]
#[repr(C)]pub enum SinkState { Invalid, Running, Idle, Suspended, }
Variants
Invalid
This state is used when the server does not support sink state introspection.
Running
Running, sink is playing and used by at least one non-corked sink-input.
Idle
When idle, the sink is playing but there is no non-corked sink-input attached to it.
Suspended
When suspended, actual sink access can be closed, for instance.
Methods
impl SinkState
[src]
fn is_opened(self) -> bool
[src]
Returns true
if sink is playing: running or idle.
fn is_running(self) -> bool
[src]
Returns true
if sink is running.
Trait Implementations
impl Debug for SinkState
[src]
impl Copy for SinkState
[src]
impl Clone for SinkState
[src]
fn clone(&self) -> SinkState
[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 SinkState
[src]
fn eq(&self, __arg_0: &SinkState) -> bool
[src]
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]
This method tests for !=
.
impl Eq for SinkState
[src]
impl From<pa_sink_state_t> for SinkState
[src]
fn from(s: pa_sink_state_t) -> Self
[src]
Performs the conversion.