pub struct Device(/* private fields */);
Implementations§
Source§impl Device
impl Device
pub const unsafe fn from_libusb(ptr: NonNull<libusb_device>) -> Device
pub fn active_config_descriptor(&self) -> Result<ConfigDescriptor, Error>
pub fn device_address(&self) -> u8
pub fn device_descriptor(&self) -> Result<DeviceDescriptor, Error>
pub fn open(&self) -> Result<DeviceHandle, Error>
pub fn libusb_ptr(&self) -> NonNull<libusb_device>
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