pub struct ModelRegistry { /* private fields */ }Expand description
IVI-registry-inspired model → kinds lookup (hints only).
Implementations§
Source§impl ModelRegistry
impl ModelRegistry
pub fn embedded() -> Self
pub fn from_toml(content: &str) -> Result<Self, String>
pub fn load_path(path: impl AsRef<Path>) -> Result<Self, String>
pub fn merge(&mut self, other: &Self)
pub fn add_runtime( &mut self, manufacturer: &str, model: &str, kinds: Vec<InstrumentKind>, )
pub fn lookup_model( &self, manufacturer: &str, model: &str, ) -> Option<Vec<InstrumentKind>>
pub fn lookup_usb(&self, vid: &str, pid: &str) -> Option<UsbHint>
Trait Implementations§
Source§impl Clone for ModelRegistry
impl Clone for ModelRegistry
Source§impl Debug for ModelRegistry
impl Debug for ModelRegistry
Auto Trait Implementations§
impl Freeze for ModelRegistry
impl RefUnwindSafe for ModelRegistry
impl Send for ModelRegistry
impl Sync for ModelRegistry
impl Unpin for ModelRegistry
impl UnsafeUnpin for ModelRegistry
impl UnwindSafe for ModelRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more