Struct jack::ClosureProcessHandler
source · [−]pub struct ClosureProcessHandler<F: 'static + Send + FnMut(&Client, &ProcessScope) -> Control> {
pub process_fn: F,
}
Expand description
Wrap a closure that can handle the process
callback. This is called every time data from ports
is available from JACK.
Fields
process_fn: F
Implementations
sourceimpl<F> ClosureProcessHandler<F> where
F: 'static + Send + FnMut(&Client, &ProcessScope) -> Control,
impl<F> ClosureProcessHandler<F> where
F: 'static + Send + FnMut(&Client, &ProcessScope) -> Control,
pub fn new(f: F) -> ClosureProcessHandler<F>
Trait Implementations
sourceimpl<F> ProcessHandler for ClosureProcessHandler<F> where
F: 'static + Send + FnMut(&Client, &ProcessScope) -> Control,
impl<F> ProcessHandler for ClosureProcessHandler<F> where
F: 'static + Send + FnMut(&Client, &ProcessScope) -> Control,
Auto Trait Implementations
impl<F> RefUnwindSafe for ClosureProcessHandler<F> where
F: RefUnwindSafe,
impl<F> Send for ClosureProcessHandler<F>
impl<F> Sync for ClosureProcessHandler<F> where
F: Sync,
impl<F> Unpin for ClosureProcessHandler<F> where
F: Unpin,
impl<F> UnwindSafe for ClosureProcessHandler<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more