pub struct Device {
pub descriptor: DeviceDescriptor,
/* private fields */
}Fields§
§descriptor: DeviceDescriptorImplementations§
Source§impl Device
impl Device
pub fn lang_id(&self) -> LanguageId
pub fn set_lang_id(&mut self, lang_id: LanguageId)
pub fn manufacturer_string(&self) -> &str
pub fn product_string(&self) -> &str
pub fn serial_number_string(&self) -> &str
pub async fn set_configuration( &mut self, configuration: u8, ) -> Result<(), USBError>
pub async fn get_configuration(&mut self) -> Result<u8, USBError>
pub async fn claim_interface( &mut self, interface: u8, alternate: u8, ) -> Result<Interface, USBError>
pub fn configurations(&self) -> &[ConfigurationDescriptor]
pub async fn current_configuration_descriptor( &mut self, ) -> Result<ConfigurationDescriptor, USBError>
pub fn class(&self) -> Class
pub fn vendor_id(&self) -> u16
pub fn product_id(&self) -> u16
pub async fn string_descriptor(&mut self, index: u8) -> Result<String, USBError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl !RefUnwindSafe for Device
impl Send for Device
impl !Sync for Device
impl Unpin for Device
impl !UnwindSafe for Device
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more