pub struct FfiProcessor { /* private fields */ }Expand description
Wraps a DevProcessorVTable into a safe DevAudioProcessor.
Owns the opaque processor instance and dispatches through vtable function pointers. All allocation and deallocation happens inside the dylib via the vtable — no cross-allocator issues.
Implementations§
Source§impl FfiProcessor
impl FfiProcessor
Sourcepub fn new(vtable: &DevProcessorVTable) -> Option<Self>
pub fn new(vtable: &DevProcessorVTable) -> Option<Self>
Create a new FFI processor from a loaded vtable.
Calls the vtable’s create function to allocate the processor
inside the dylib. Returns None if create returns null
(indicating a panic or allocation failure inside the dylib).
Trait Implementations§
Source§impl DevAudioProcessor for FfiProcessor
impl DevAudioProcessor for FfiProcessor
Source§impl Drop for FfiProcessor
impl Drop for FfiProcessor
impl Send for FfiProcessor
Auto Trait Implementations§
impl Freeze for FfiProcessor
impl RefUnwindSafe for FfiProcessor
impl !Sync for FfiProcessor
impl Unpin for FfiProcessor
impl UnwindSafe for FfiProcessor
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