Struct ChannelRef
#[non_exhaustive]pub struct ChannelRef {
pub id: u64,
}Expand description
A playing sound’s channel, for play_sound_source and
play_streaming_source: an id only, to tell sounds apart across the two
hooks. It gives no control over the channel.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u64The channel’s id, unique among the live ones.
Trait Implementations§
§impl Clone for ChannelRef
impl Clone for ChannelRef
§fn clone(&self) -> ChannelRef
fn clone(&self) -> ChannelRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChannelRef
§impl Debug for ChannelRef
impl Debug for ChannelRef
impl Eq for ChannelRef
§impl From<ChannelRef> for ChannelRef
impl From<ChannelRef> for ChannelRef
§fn from(v: ChannelRef) -> ChannelRef
fn from(v: ChannelRef) -> ChannelRef
Converts to this type from the input type.
§impl Hash for ChannelRef
impl Hash for ChannelRef
§impl PartialEq for ChannelRef
impl PartialEq for ChannelRef
impl StructuralPartialEq for ChannelRef
Auto Trait Implementations§
impl Freeze for ChannelRef
impl RefUnwindSafe for ChannelRef
impl Send for ChannelRef
impl Sync for ChannelRef
impl Unpin for ChannelRef
impl UnsafeUnpin for ChannelRef
impl UnwindSafe for ChannelRef
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