pub enum DevState {
Invalid = -1,
Running = 0,
Idle = 1,
Suspended = 2,
}
Expand description
This is a wrapper around SinkState and SourceState as they have the same values
Variants§
Invalid = -1
This state is used when the server does not support sink state introspection.
Running = 0
Running, sink is playing and used by at least one non-corked sink-input.
Idle = 1
When idle, the sink is playing but there is no non-corked sink-input attached to it.
Suspended = 2
When suspended, actual sink access can be closed, for instance.
Trait Implementations§
Source§impl<'a> From<SourceState> for DevState
impl<'a> From<SourceState> for DevState
Source§fn from(s: SourceState) -> Self
fn from(s: SourceState) -> Self
Converts to this type from the input type.
impl Copy for DevState
impl Eq for DevState
impl StructuralPartialEq for DevState
Auto Trait Implementations§
impl Freeze for DevState
impl RefUnwindSafe for DevState
impl Send for DevState
impl Sync for DevState
impl Unpin for DevState
impl UnwindSafe for DevState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more