pub(crate) struct ParkedPlaybackStream {
pub(crate) stream: AAudioStreamPtr,
pub(crate) aaudio_buffer_size: usize,
pub(crate) params: PlaybackParams,
pub(crate) parked_at: Instant,
}Expand description
An open, started playback AAudio stream whose AudioStream was dropped.
Fields§
§stream: AAudioStreamPtr§aaudio_buffer_size: usize§params: PlaybackParams§parked_at: InstantImplementations§
Source§impl ParkedPlaybackStream
impl ParkedPlaybackStream
Sourcepub(crate) fn is_started(&self) -> bool
pub(crate) fn is_started(&self) -> bool
Returns whether AAudio still reports the stream as starting or started. A stream that lost its audio device fails this call or reports AAUDIO_STREAM_STATE_DISCONNECTED.
Trait Implementations§
impl Send for ParkedPlaybackStream
Auto Trait Implementations§
impl Freeze for ParkedPlaybackStream
impl RefUnwindSafe for ParkedPlaybackStream
impl !Sync for ParkedPlaybackStream
impl Unpin for ParkedPlaybackStream
impl UnwindSafe for ParkedPlaybackStream
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