Trait jack::ProcessHandler [] [src]

pub trait ProcessHandler: Send {
    fn process(&mut self, _: &Client, _process_scope: &ProcessScope) -> Control;
}

Specifies real-time processing.

Required Methods

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.

[src]

Return Control::Continue so that the client stays activated.

Implementors