melodium-engine 0.10.0

Mélodium core engine and executor implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use melodium_common::descriptor::{Identifier, Treatment};
use std::sync::Arc;

#[derive(Debug, Clone)]
pub enum HostTreatment {
    Treatment(Arc<dyn Treatment>),
    Direct,
}

impl HostTreatment {
    pub fn host_id(&self) -> Option<&Identifier> {
        match self {
            HostTreatment::Treatment(descriptor) => Some(descriptor.identifier()),
            _ => None,
        }
    }
}