pub struct Modalias {
pub subtype: ModaliasSubtype,
pub vendor_id: u16,
pub product_id: u16,
pub device_id: u16,
}Expand description
A parsed modalias string.
The usb and bluetooth subtypes are accepted and retained alongside the
numeric vendor, product, and device fields.
Fields§
§subtype: ModaliasSubtype§vendor_id: u16§product_id: u16§device_id: u16Trait Implementations§
impl Eq for Modalias
Source§impl Ord for Modalias
impl Ord for Modalias
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Modalias
impl PartialOrd for Modalias
impl StructuralPartialEq for Modalias
Auto Trait Implementations§
impl Freeze for Modalias
impl RefUnwindSafe for Modalias
impl Send for Modalias
impl Sync for Modalias
impl Unpin for Modalias
impl UnsafeUnpin for Modalias
impl UnwindSafe for Modalias
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