pub struct AudioObject { /* private fields */ }Implementations§
Source§impl AudioObject
impl AudioObject
pub const fn new(id: AudioObjectID) -> Self
pub const fn system() -> Self
pub const fn unknown() -> Self
pub const fn id(self) -> AudioObjectID
pub fn show(self)
pub fn has_property(self, address: &AudioObjectPropertyAddress) -> bool
pub fn is_property_settable( self, address: &AudioObjectPropertyAddress, ) -> Result<bool, OSStatus>
pub fn property_data_size( self, address: &AudioObjectPropertyAddress, ) -> Result<u32, OSStatus>
pub fn property_data_size_with_qualifier( self, address: &AudioObjectPropertyAddress, qualifier: &[u8], ) -> Result<u32, OSStatus>
pub fn get_property<T: Copy>( self, address: &AudioObjectPropertyAddress, ) -> Result<T, OSStatus>
pub fn get_property_with_qualifier<T: Copy>( self, address: &AudioObjectPropertyAddress, qualifier: &[u8], ) -> Result<T, OSStatus>
pub fn get_property_bytes( self, address: &AudioObjectPropertyAddress, ) -> Result<Vec<u8>, OSStatus>
pub fn get_property_bytes_with_qualifier( self, address: &AudioObjectPropertyAddress, qualifier: &[u8], ) -> Result<Vec<u8>, OSStatus>
pub fn get_property_array<T: Copy>( self, address: &AudioObjectPropertyAddress, ) -> Result<Vec<T>, OSStatus>
pub fn get_property_array_with_qualifier<T: Copy>( self, address: &AudioObjectPropertyAddress, qualifier: &[u8], ) -> Result<Vec<T>, OSStatus>
pub fn set_property<T: Copy>( self, address: &AudioObjectPropertyAddress, value: &T, ) -> Result<(), OSStatus>
pub fn set_property_with_qualifier<T: Copy>( self, address: &AudioObjectPropertyAddress, qualifier: &[u8], value: &T, ) -> Result<(), OSStatus>
pub fn set_property_bytes( self, address: &AudioObjectPropertyAddress, bytes: &[u8], ) -> Result<(), OSStatus>
pub fn set_property_bytes_with_qualifier( self, address: &AudioObjectPropertyAddress, qualifier: &[u8], bytes: &[u8], ) -> Result<(), OSStatus>
Trait Implementations§
Source§impl Clone for AudioObject
impl Clone for AudioObject
Source§fn clone(&self) -> AudioObject
fn clone(&self) -> AudioObject
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 AudioObject
Source§impl Debug for AudioObject
impl Debug for AudioObject
impl Eq for AudioObject
Source§impl From<u32> for AudioObject
impl From<u32> for AudioObject
Source§fn from(id: AudioObjectID) -> Self
fn from(id: AudioObjectID) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AudioObject
impl PartialEq for AudioObject
Source§fn eq(&self, other: &AudioObject) -> bool
fn eq(&self, other: &AudioObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AudioObject
Auto Trait Implementations§
impl Freeze for AudioObject
impl RefUnwindSafe for AudioObject
impl Send for AudioObject
impl Sync for AudioObject
impl Unpin for AudioObject
impl UnsafeUnpin for AudioObject
impl UnwindSafe for AudioObject
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