Skip to main content

Backend

Trait Backend 

Source
pub trait Backend:
    Send
    + Sync
    + 'static {
    type Driver: HwWorkerDriver + Send + 'static;
    type MidiHub: HwMidiHub + Send + 'static;

    const LABEL: &'static str;
    const WORKER_THREAD_NAME: &'static str;
    const ASSIST_THREAD_NAME: &'static str;
    const ASSIST_AUTONOMOUS_ENV: &'static str;
    const ASSIST_AUTONOMOUS_DEFAULT: bool = false;
    const CYCLE_ON_WORKER_WHEN_ASSIST_AUTONOMOUS: bool = false;
    const ASSIST_STEP_REQUIRES_REQUEST_CYCLE: bool = false;
}

Required Associated Constants§

Source

const LABEL: &'static str

Source

const WORKER_THREAD_NAME: &'static str

Source

const ASSIST_THREAD_NAME: &'static str

Source

const ASSIST_AUTONOMOUS_ENV: &'static str

Provided Associated Constants§

Required Associated Types§

Source

type Driver: HwWorkerDriver + Send + 'static

Source

type MidiHub: HwMidiHub + Send + 'static

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Backend for AlsaBackend

Source§

const LABEL: &'static str = "ALSA"

Source§

const WORKER_THREAD_NAME: &'static str = "alsa-worker"

Source§

const ASSIST_THREAD_NAME: &'static str = "alsa-assist"

Source§

const ASSIST_AUTONOMOUS_ENV: &'static str = config::ALSA_ASSIST_AUTONOMOUS_ENV

Source§

type Driver = HwDriver

Source§

type MidiHub = MidiHub