Struct sysfs_serde::usb_attributes::UsbAttributes [−][src]
De-serialized /sys/class/bus/usb to a Rust structure. Note unknown fields are stored in raw format in the attributes: HashMap<String, String>
Fields
num_endpoints: u8num_configurations: u8num_interfaces: u8interface_class: u8interface_number: u8interface_protocol: u8alternate_setting: u8interface_subclass: u8max_packet_size0: u16supports_autosuspend: u8modalias: Stringid_product: Option<String>id_vendor: Option<String>bus_num: u8dev_num: u8product: Stringmanufacturer: Stringserial: Stringuevent: Option<UEvent>descriptors: Vec<u8>attributes: HashMap<String, String>Trait Implementations
impl Default for UsbAttributes[src]
fn default() -> UsbAttributes[src]
impl Serialize for UsbAttributes[src]
Auto Trait Implementations
impl RefUnwindSafe for UsbAttributes
impl Send for UsbAttributes
impl Sync for UsbAttributes
impl Unpin for UsbAttributes
impl UnwindSafe for UsbAttributes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,