Struct jack::prelude::ClosureProcessHandler
[−]
[src]
pub struct ClosureProcessHandler<F: 'static + Send + FnMut(&Client, &ProcessScope) -> JackControl> { pub process_fn: F, }
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
Methods
impl<F> ClosureProcessHandler<F> where
F: 'static + Send + FnMut(&Client, &ProcessScope) -> JackControl,
[src]
F: 'static + Send + FnMut(&Client, &ProcessScope) -> JackControl,
fn new(f: F) -> ClosureProcessHandler<F>
[src]
Trait Implementations
impl<F> ProcessHandler for ClosureProcessHandler<F> where
F: 'static + Send + FnMut(&Client, &ProcessScope) -> JackControl,
[src]
F: 'static + Send + FnMut(&Client, &ProcessScope) -> JackControl,
fn process(&mut self, c: &Client, ps: &ProcessScope) -> JackControl
[src]
Called whenever there is work to be done. Read more