Trait jack::ProcessHandler
[−]
[src]
pub trait ProcessHandler: Send { fn process(&mut self, _: &Client, _process_scope: &ProcessScope) -> Control; }
Specifies real-time processing.
Required Methods
fn process(&mut self, _: &Client, _process_scope: &ProcessScope) -> Control
Called whenever there is work to be done.
It needs to be suitable for real-time execution. That means that it cannot call functions that might block for a long time. This includes all I/O functions (disk, TTY, network), malloc, free, printf, pthread_mutex_lock, sleep, wait, poll, select, pthread_join, pthread_cond_wait, etc, etc.
Should return Control::Continue
on success, and
Control::Quit
on error.
Implementations on Foreign Types
impl ProcessHandler for ()
[src]
A trivial handler that does nothing.
fn process(&mut self, _: &Client, _: &ProcessScope) -> Control
[src]
Return Control::Continue
so that the client stays activated.
Implementors
impl<F> ProcessHandler for ClosureProcessHandler<F> where
F: 'static + Send + FnMut(&Client, &ProcessScope) -> Control,