pub struct HackRfDescriptor { /* private fields */ }Expand description
A HackRF device descriptor, which can be opened.
These are mostly returned from calling list_hackrf_devices, but can also
be formed by trying to convert a nusb::DeviceInfo into one.
Implementations§
Trait Implementations§
Source§impl TryFrom<DeviceInfo> for HackRfDescriptor
Try and turn any nusb::DeviceInfo descriptor into a HackRF, failing if
the VID and PID don’t match any known devices.
impl TryFrom<DeviceInfo> for HackRfDescriptor
Try and turn any nusb::DeviceInfo descriptor into a HackRF, failing if
the VID and PID don’t match any known devices.
Auto Trait Implementations§
impl Freeze for HackRfDescriptor
impl RefUnwindSafe for HackRfDescriptor
impl Send for HackRfDescriptor
impl Sync for HackRfDescriptor
impl Unpin for HackRfDescriptor
impl UnwindSafe for HackRfDescriptor
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