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