pub struct Group(pub i32);Expand description
Sound effect channel grouping.
Tuple Fields
0: i32Implementations
sourceimpl Group
impl Group
sourcepub fn add_channels_range(self, from: i32, to: i32) -> i32
pub fn add_channels_range(self, from: i32, to: i32) -> i32
Add channels starting at from up through to to group tag, or reset it’s group to the default group tag (-1).
sourcepub fn add_channel(self, Channel: Channel) -> bool
pub fn add_channel(self, Channel: Channel) -> bool
Add which channel to group tag, or reset it’s group to the default group tag
sourcepub fn find_available(self) -> Option<Channel>
pub fn find_available(self) -> Option<Channel>
Find the first available (not playing) channel in group
sourcepub fn find_oldest(self) -> Option<Channel>
pub fn find_oldest(self) -> Option<Channel>
Find the oldest actively playing channel in group
sourcepub fn find_newest(self) -> Option<Channel>
pub fn find_newest(self) -> Option<Channel>
Find the newest, most recently started, actively playing channel in group.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
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
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