Method lrs::file::Device::from_id

Returns a device based on its id and type.

Syntax

impl Device {
    fn from_id(id: u32, ty: DeviceType) -> Device
}

Arguments

NameDescription
id

The id of the device.

ty

The type of the device.