pub struct DeviceCategory {
pub category: Option<String>,
pub subcategory: Option<String>,
}
Expand description
Device categories as provided in the driver’s component manifest.
Fields§
§category: Option<String>
§subcategory: Option<String>
Trait Implementations§
Source§impl Clone for DeviceCategory
impl Clone for DeviceCategory
Source§fn clone(&self) -> DeviceCategory
fn clone(&self) -> DeviceCategory
Returns a copy 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 DeviceCategory
impl Debug for DeviceCategory
Source§impl Default for DeviceCategory
impl Default for DeviceCategory
Source§fn default() -> DeviceCategory
fn default() -> DeviceCategory
Returns the “default value” for a type. Read more
Source§impl Encodable for DeviceCategory
impl Encodable for DeviceCategory
Source§type Encoded = WireDeviceCategory
type Encoded = WireDeviceCategory
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for DeviceCategorywhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for DeviceCategorywhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireDeviceCategory> for DeviceCategory
impl TakeFrom<WireDeviceCategory> for DeviceCategory
Source§fn take_from(from: &WireDeviceCategory) -> Self
fn take_from(from: &WireDeviceCategory) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for DeviceCategory
impl RefUnwindSafe for DeviceCategory
impl Send for DeviceCategory
impl Sync for DeviceCategory
impl Unpin for DeviceCategory
impl UnwindSafe for DeviceCategory
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