wip: p.44, e=135, removing E generic

This commit is contained in:
🪞👃🪞 2024-11-16 22:05:34 +01:00
parent a7998860b1
commit 260736f31d
20 changed files with 848 additions and 838 deletions

View file

@ -1,10 +1,5 @@
use crate::*;
pub trait HasJack {
fn jack (&self) -> &impl JackApi;
}
pub trait JackApi {
fn jack (&self) -> &Arc<RwLock<JackClient>>;
fn transport (&self) -> &RwLock<Option<TransportState>>;
}

View file

@ -1,6 +1,6 @@
use crate::*;
pub trait HasPlayer: HasJack {
pub trait HasPlayer: JackApi {
fn player (&self) -> &impl PlayerApi;
fn player_mut (&mut self) -> &mut impl PlayerApi;
}