pub struct Device(_);Implementations§
source§impl Device
impl Device
sourcepub fn get_feature_report<T>(&mut self, report_id: u8) -> Result<T>
pub fn get_feature_report<T>(&mut self, report_id: u8) -> Result<T>
Request a feature report using HIDIOCGFEATURE ioctl.
sourcepub fn get_input_report<T>(&mut self, report_id: u8) -> Result<T>
pub fn get_input_report<T>(&mut self, report_id: u8) -> Result<T>
Request an input report using HIDIOCGINPUT ioctl.
sourcepub fn get_input_report_read<T>(&mut self, report_id: u8) -> Result<T>
pub fn get_input_report_read<T>(&mut self, report_id: u8) -> Result<T>
Request an input report using read.
sourcepub fn get_output_report<T>(&mut self, report_id: u8) -> Result<T>
pub fn get_output_report<T>(&mut self, report_id: u8) -> Result<T>
Request an output report using HIDIOCGOUTPUT ioctl.
sourcepub fn get_physical_address(&mut self) -> Result<String>
pub fn get_physical_address(&mut self) -> Result<String>
sourcepub fn get_raw_info(&mut self) -> Result<RawInfo>
pub fn get_raw_info(&mut self) -> Result<RawInfo>
sourcepub fn get_raw_name(&mut self) -> Result<String>
pub fn get_raw_name(&mut self) -> Result<String>
sourcepub fn get_raw_unique(&mut self) -> Result<String>
pub fn get_raw_unique(&mut self) -> Result<String>
sourcepub fn get_report_descriptor(&mut self) -> Result<Vec<u8>>
pub fn get_report_descriptor(&mut self) -> Result<Vec<u8>>
sourcepub fn send_feature_report<T>(&mut self, report: &T) -> Result<()>
pub fn send_feature_report<T>(&mut self, report: &T) -> Result<()>
Send a feature report using HIDIOCSFEATURE ioctl.
sourcepub fn send_input_report<T>(&mut self, report: &T) -> Result<()>
pub fn send_input_report<T>(&mut self, report: &T) -> Result<()>
Send an input report using HIDIOCSINPUT ioctl.
sourcepub fn send_output_report<T>(&mut self, report: &T) -> Result<()>
pub fn send_output_report<T>(&mut self, report: &T) -> Result<()>
Send an output report using HIDIOCSOUTPUT ioctl.
sourcepub fn send_output_report_write<T>(&mut self, report: &T) -> Result<()>
pub fn send_output_report_write<T>(&mut self, report: &T) -> Result<()>
Send an output report using write.
Trait Implementations§
source§impl AsFd for Device
impl AsFd for Device
source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more