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]
impl SinkState
pub fn is_opened(self) -> bool
[src]
pub fn is_opened(self) -> bool
Returns true
if sink is playing: running or idle.
pub fn is_running(self) -> bool
[src]
pub fn is_running(self) -> bool
Returns true
if sink is running.
Trait Implementations
impl Debug for SinkState
[src]
impl Debug for SinkState
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 SinkState
[src]
impl Copy for SinkState
impl Clone for SinkState
[src]
impl Clone for SinkState
fn clone(&self) -> SinkState
[src]
fn clone(&self) -> SinkState
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 SinkState
[src]
impl PartialEq for SinkState
fn eq(&self, other: &SinkState) -> bool
[src]
fn eq(&self, other: &SinkState) -> 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 SinkState
[src]
impl Eq for SinkState
impl From<SinkState> for pa_sink_state_t
[src]
impl From<SinkState> for pa_sink_state_t
impl From<pa_sink_state_t> for SinkState
[src]
impl From<pa_sink_state_t> for SinkState
fn from(s: pa_sink_state_t) -> Self
[src]
fn from(s: pa_sink_state_t) -> Self
Performs the conversion.