#[repr(C)]pub struct AudioComponentPlugInInterface {
pub Open: unsafe extern "C-unwind" fn(NonNull<c_void>, AudioComponentInstance) -> i32,
pub Close: unsafe extern "C-unwind" fn(NonNull<c_void>) -> i32,
pub Lookup: unsafe extern "C-unwind" fn(i16) -> AudioComponentMethod,
pub reserved: *mut c_void,
}
Available on crate feature
AudioComponent
only.Expand description
A structure used to represent an audio plugin’s routines
the function used to open (or create) an audio plugin instance
the function used to close (or dispose) an audio plugin instance
this is used to return a function pointer for a given selector, or NULL if that selector is not implemented
must be NULL
See also Apple’s documentation
Fields§
§Open: unsafe extern "C-unwind" fn(NonNull<c_void>, AudioComponentInstance) -> i32
§Close: unsafe extern "C-unwind" fn(NonNull<c_void>) -> i32
§Lookup: unsafe extern "C-unwind" fn(i16) -> AudioComponentMethod
§reserved: *mut c_void
Trait Implementations§
Source§impl Clone for AudioComponentPlugInInterface
impl Clone for AudioComponentPlugInInterface
Source§fn clone(&self) -> AudioComponentPlugInInterface
fn clone(&self) -> AudioComponentPlugInInterface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for AudioComponentPlugInInterface
impl PartialEq for AudioComponentPlugInInterface
Source§fn eq(&self, other: &AudioComponentPlugInInterface) -> bool
fn eq(&self, other: &AudioComponentPlugInInterface) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl RefEncode for AudioComponentPlugInInterface
impl RefEncode for AudioComponentPlugInInterface
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for AudioComponentPlugInInterface
impl StructuralPartialEq for AudioComponentPlugInInterface
Auto Trait Implementations§
impl Freeze for AudioComponentPlugInInterface
impl RefUnwindSafe for AudioComponentPlugInInterface
impl !Send for AudioComponentPlugInInterface
impl !Sync for AudioComponentPlugInInterface
impl Unpin for AudioComponentPlugInInterface
impl UnwindSafe for AudioComponentPlugInInterface
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.