Struct rodio::queue::SourcesQueueInput
source · pub struct SourcesQueueInput<S> { /* private fields */ }
Expand description
The input of the queue.
Implementations§
source§impl<S> SourcesQueueInput<S>
impl<S> SourcesQueueInput<S>
sourcepub fn append_with_signal<T>(&self, source: T) -> Receiver<()>
pub fn append_with_signal<T>(&self, source: T) -> Receiver<()>
Adds a new source to the end of the queue.
The Receiver
will be signalled when the sound has finished playing.
Enable the feature flag crossbeam-channel
in rodio to use a crossbeam_channel::Receiver
instead.
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> !Freeze for SourcesQueueInput<S>
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§
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