pub struct Device {
pub vid: u16,
pub pid: u16,
pub serial_number: Option<String>,
pub handle: Option<OpenDevice>,
pub poller_handle: JoinHandle<()>,
pub device_info_out: Sender<Option<DeviceInfo>>,
pub shutdown: Arc<Notify>,
}Fields§
§vid: u16§pid: u16§serial_number: Option<String>§handle: Option<OpenDevice>§poller_handle: JoinHandle<()>§device_info_out: Sender<Option<DeviceInfo>>§shutdown: Arc<Notify>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