pub struct UsbAttachment {
pub id: u64,
pub host_key: String,
pub info: DeviceInfo,
pub permission: UsbPermission,
}Expand description
One physical attachment. An unplug/replug receives a new ID even when the
OS reuses the device path. Use id, not VID/PID, for permission results.
Fields§
§id: u64§host_key: String§info: DeviceInfo§permission: UsbPermissionTrait Implementations§
Source§impl Clone for UsbAttachment
impl Clone for UsbAttachment
Source§impl Debug for UsbAttachment
impl Debug for UsbAttachment
impl Eq for UsbAttachment
Source§impl PartialEq for UsbAttachment
impl PartialEq for UsbAttachment
impl StructuralPartialEq for UsbAttachment
Auto Trait Implementations§
impl Forget for UsbAttachment
impl Freeze for UsbAttachment
impl Move for UsbAttachment
impl RefUnwindSafe for UsbAttachment
impl Send for UsbAttachmentwhere
RawVecInner: Send,
impl Sync for UsbAttachmentwhere
RawVecInner: Sync,
impl Unpin for UsbAttachment
impl UnsafeUnpin for UsbAttachment
impl UnwindSafe for UsbAttachmentwhere
RawVecInner: UnwindSafe,
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