Struct rodio::queue::SourcesQueueInput
source · [−]pub struct SourcesQueueInput<S> { /* private fields */ }
Expand description
The input of the queue.
Implementations
sourceimpl<S> SourcesQueueInput<S>where
S: Sample + Send + 'static,
impl<S> SourcesQueueInput<S>where
S: Sample + Send + 'static,
sourcepub fn append<T>(&self, source: T)where
T: Source<Item = S> + Send + 'static,
pub fn append<T>(&self, source: T)where
T: Source<Item = S> + Send + 'static,
Adds a new source to the end of the queue.
sourcepub fn append_with_signal<T>(&self, source: T) -> Receiver<()>where
T: Source<Item = S> + Send + 'static,
pub fn append_with_signal<T>(&self, source: T) -> Receiver<()>where
T: Source<Item = S> + Send + 'static,
Adds a new source to the end of the queue.
The Receiver
will be signalled when the sound has finished playing.
sourcepub fn set_keep_alive_if_empty(&self, keep_alive_if_empty: bool)
pub fn set_keep_alive_if_empty(&self, keep_alive_if_empty: bool)
Sets whether the queue stays alive if there’s no more sound to play.
See also the constructor.
Auto Trait Implementations
impl<S> RefUnwindSafe for SourcesQueueInput<S>
impl<S> Send for SourcesQueueInput<S>
impl<S> Sync for SourcesQueueInput<S>
impl<S> Unpin for SourcesQueueInput<S>
impl<S> UnwindSafe for SourcesQueueInput<S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more