mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
wip: cleanup, begin reconnecting ports
This commit is contained in:
parent
e8430c373f
commit
0cca06e054
5 changed files with 41 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue