Function hidraw::get_raw_unique

source ·
pub fn get_raw_unique<F: AsRawFd>(file: &mut F) -> Result<String>
Examples found in repository?
examples/info.rs (line 16)
9
10
11
12
13
14
15
16
17
18
19
fn print_info<P: AsRef<Path>>(path: P) -> Result<()> {
	let mut file = OpenOptions::new().custom_flags(O_NONBLOCK).read(true).open(path)?;

	println!("{:?}", get_physical_address(&mut file)?);
	println!("{:?}", get_report_descriptor(&mut file)?);
	println!("{:?}", get_raw_info(&mut file)?);
	println!("{:?}", get_raw_name(&mut file)?);
	println!("{:?}", get_raw_unique(&mut file)?);

	Ok(())
}