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;
}

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

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", so this trait is not object safe.

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