pub struct SourcesQueueInput { /* private fields */ }
Expand description
The input of the queue.
Implementations§
Source§impl SourcesQueueInput
impl SourcesQueueInput
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 !Freeze for SourcesQueueInput
impl RefUnwindSafe for SourcesQueueInput
impl Send for SourcesQueueInput
impl Sync for SourcesQueueInput
impl Unpin for SourcesQueueInput
impl UnwindSafe for SourcesQueueInput
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