pub struct HotplugInfo {
pub usb_vid: u16,
pub usb_pid: u16,
}Fields§
§usb_vid: u16§usb_pid: u16Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for HotplugInfo
impl<'__de, __Context> BorrowDecode<'__de, __Context> for HotplugInfo
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for HotplugInfo
impl Clone for HotplugInfo
Source§fn clone(&self) -> HotplugInfo
fn clone(&self) -> HotplugInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HotplugInfo
impl Debug for HotplugInfo
Source§impl<__Context> Decode<__Context> for HotplugInfo
impl<__Context> Decode<__Context> for HotplugInfo
Source§impl Default for HotplugInfo
impl Default for HotplugInfo
Source§fn default() -> HotplugInfo
fn default() -> HotplugInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HotplugInfo
impl RefUnwindSafe for HotplugInfo
impl Send for HotplugInfo
impl Sync for HotplugInfo
impl Unpin for HotplugInfo
impl UnwindSafe for HotplugInfo
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