Method lrs::file::Device::to_path

Returns the path of a device in "/dev".

Syntax

impl Device {
    fn to_path(self, buf: &mut [u8]) -> Result<&mut [u8], Errno>
}

Arguments

NameDescription
buf

The buffer in which the device path will be stored.

Remarks

This functionality is only available if lrs has been compiled with the device_paths option. Otherwise the function returns the NotImplemented error.