struct Shared {
phase: Phase,
position: Duration,
duration: Option<Duration>,
seekable: bool,
deferred_seek: Option<Duration>,
open_generation: u64,
}Expand description
State the event thread writes and the caller reads.
Fields§
§phase: Phase§position: Duration§duration: Option<Duration>§seekable: bool§deferred_seek: Option<Duration>A seek that arrived while opening. Applied on FileLoaded.
open_generation: u64Cleared by close(), so an open still in flight cannot come back to life
and start playing after the caller has stopped it.
Trait Implementations§
Auto Trait Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.