pub type DeviceFactory = Arc<dyn Fn(&DeviceSpec, &DeviceRegistry) -> Result<Device> + Send + Sync>;Expand description
Factory function that creates a Device for a given DeviceSpec.
The factory receives both the device specification and the allocator registry, allowing it to obtain the correct allocator for the device.
Returns DeviceResult<Device> (from svod_device) since device creation
errors come from the device crate.
Aliased Typeยง
pub struct DeviceFactory { /* private fields */ }