create_custom_plugin

Function create_custom_plugin 

Source
pub fn create_custom_plugin<F>(
    name: &str,
    version: &str,
    description: &str,
    discover_fn: F,
) -> Box<dyn DMSCHardwareDiscoveryPlugin>
where F: Fn() -> Vec<DMSCDevice> + Send + Sync + 'static,
Expand description

Utility function to create a custom discovery plugin from a closure