pub struct StaticProcessor<T> { /* private fields */ }Expand description
A static wrapper for an AudioProcessor that provides safe
&'static mut access for graph_add_processor.
§Example
ⓘ
static PROC: StaticProcessor<MyProc> = StaticProcessor::new(MyProc);
let idx = graph_add_processor(&mut graph, PROC.get_mut(), b"my-proc\0")?;Implementations§
Trait Implementations§
impl<T: Send> Send for StaticProcessor<T>
impl<T: Send> Sync for StaticProcessor<T>
Auto Trait Implementations§
impl<T> !Freeze for StaticProcessor<T>
impl<T> !RefUnwindSafe for StaticProcessor<T>
impl<T> Unpin for StaticProcessor<T>where
T: Unpin,
impl<T> UnwindSafe for StaticProcessor<T>where
T: UnwindSafe,
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