wip: cleanup, begin reconnecting ports

This commit is contained in:
🪞👃🪞 2025-01-09 18:31:42 +01:00
parent e8430c373f
commit 0cca06e054
5 changed files with 41 additions and 29 deletions

View file

@ -1,5 +1,21 @@
use crate::*;
pub struct JackPort<T: PortSpec> {
pub port: Port<T>,
pub connect: Vec<PortConnect>
}
impl<T: PortSpec> JackPort<T> {
//pub fn new (jack: &impl RegisterPort
}
#[derive(Clone, PartialEq)]
pub enum PortConnect {
Exact(Arc<str>),
Wildcard(Arc<str>),
RegExp(Arc<str>),
}
/// This is a utility trait for things that may register or connect [Port]s.
/// It contains shorthand methods to this purpose. It's implemented for
/// `Arc<RwLock<JackConnection>>` for terse port registration in the