#[repr(transparent)]pub struct AudioObjectId(pub u32);Expand description
A Core Audio object identifier.
Layout-compatible with the C AudioObjectID (u32).
AudioObjectId::UNKNOWN (0) is the reserved “no object”
sentinel; AudioObjectId::PLUGIN (1) is the fixed id the
HAL uses to address the plug-in object itself. Every other id is
minted by the plug-in as it creates boxes, devices, and streams.
Tuple Fields§
§0: u32Implementations§
Source§impl AudioObjectId
impl AudioObjectId
Sourcepub const PLUGIN: Self
pub const PLUGIN: Self
kAudioObjectPlugInObject — the fixed id by which the HAL
addresses the plug-in object. The plug-in does not mint this
id; it is assigned by Core Audio before the first property
call.
Sourcepub const FIRST_DYNAMIC: Self
pub const FIRST_DYNAMIC: Self
The first id the plug-in is free to mint for its own
objects. Ids 0 and 1 are reserved (see Self::UNKNOWN
and Self::PLUGIN).
Sourcepub const fn is_unknown(self) -> bool
pub const fn is_unknown(self) -> bool
true iff this is Self::UNKNOWN.
Sourcepub const fn is_plugin(self) -> bool
pub const fn is_plugin(self) -> bool
true iff this is Self::PLUGIN.
Trait Implementations§
Source§impl Clone for AudioObjectId
impl Clone for AudioObjectId
Source§fn clone(&self) -> AudioObjectId
fn clone(&self) -> AudioObjectId
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 moreSource§impl Debug for AudioObjectId
impl Debug for AudioObjectId
Source§impl From<AudioObjectId> for DeviceId
impl From<AudioObjectId> for DeviceId
Source§fn from(value: AudioObjectId) -> Self
fn from(value: AudioObjectId) -> Self
Converts to this type from the input type.
Source§impl From<AudioObjectId> for u32
impl From<AudioObjectId> for u32
Source§fn from(value: AudioObjectId) -> Self
fn from(value: AudioObjectId) -> Self
Converts to this type from the input type.
Source§impl From<u32> for AudioObjectId
impl From<u32> for AudioObjectId
Source§impl Hash for AudioObjectId
impl Hash for AudioObjectId
Source§impl Ord for AudioObjectId
impl Ord for AudioObjectId
Source§fn cmp(&self, other: &AudioObjectId) -> Ordering
fn cmp(&self, other: &AudioObjectId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AudioObjectId
impl PartialEq for AudioObjectId
Source§fn eq(&self, other: &AudioObjectId) -> bool
fn eq(&self, other: &AudioObjectId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AudioObjectId
impl PartialOrd for AudioObjectId
impl Copy for AudioObjectId
impl Eq for AudioObjectId
impl StructuralPartialEq for AudioObjectId
Auto Trait Implementations§
impl Freeze for AudioObjectId
impl RefUnwindSafe for AudioObjectId
impl Send for AudioObjectId
impl Sync for AudioObjectId
impl Unpin for AudioObjectId
impl UnsafeUnpin for AudioObjectId
impl UnwindSafe for AudioObjectId
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