Struct web_audio_api::control::Scheduler
source · [−]pub struct Scheduler { /* private fields */ }
Expand description
Helper struct to start and stop audio streams
Implementations
sourceimpl Scheduler
impl Scheduler
sourcepub fn state(&self, ts: f64) -> ScheduledState
pub fn state(&self, ts: f64) -> ScheduledState
Check if the stream should be active at this timestamp
sourcepub fn get_start_at(&self) -> f64
pub fn get_start_at(&self) -> f64
Retrieve playback start value
sourcepub fn get_stop_at(&self) -> f64
pub fn get_stop_at(&self) -> f64
Retrieve playback stop value
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Scheduler
impl Send for Scheduler
impl Sync for Scheduler
impl Unpin for Scheduler
impl UnwindSafe for Scheduler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
pub fn into_sample(self) -> T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more