jack: add Port::close

This commit is contained in:
🪞👃🪞 2025-05-01 01:19:01 +03:00
parent 57e0f64056
commit 80964d5b4a
2 changed files with 11 additions and 5 deletions

View file

@ -55,7 +55,7 @@ impl HasJack for &Jack {
/// Wraps [JackState] and through it [jack::Client].
#[derive(Clone, Debug, Default)]
pub struct Jack {
state: Arc<RwLock<JackState>>
pub state: Arc<RwLock<JackState>>
}
impl Jack {
@ -99,7 +99,8 @@ impl Jack {
/// This is a connection which may be [Inactive], [Activating], or [Active].
/// In the [Active] and [Inactive] states, [JackState::client] returns a
/// [jack::Client], which you can use to talk to the JACK API.
#[derive(Debug, Default)] enum JackState {
#[derive(Debug, Default)]
pub enum JackState {
/// Unused
#[default] Inert,
/// Before activation.