pub enum StreamState {
Buffering,
Playing,
Paused,
Draining,
Drained,
Closed,
Failed,
}Expand description
Where a stream is in its life.
Variants§
Buffering
Silence is on the wire while the ring fills to the start threshold (at
stream start, after flush(), or after an underrun recovered).
Playing
Audio from the ring is on the wire.
Paused
pause() is in effect: wire-correct silence, ring untouched.
Draining
drain() was called and queued audio is still playing out.
Drained
drain() was called and everything queued has been played.
Closed
The stream was closed.
Failed
The stream stopped on an error (an Error event preceded this).
Implementations§
Trait Implementations§
Source§impl Clone for StreamState
impl Clone for StreamState
impl Copy for StreamState
Source§impl Debug for StreamState
impl Debug for StreamState
impl Eq for StreamState
Source§impl PartialEq for StreamState
impl PartialEq for StreamState
impl StructuralPartialEq for StreamState
Auto Trait Implementations§
impl Forget for StreamState
impl Freeze for StreamState
impl Move for StreamState
impl RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl UnsafeUnpin for StreamState
impl UnwindSafe for StreamState
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