#[repr(u8)]pub enum RHardwareCategoryKind {
Gpu = 0,
Storage = 1,
Network = 2,
Cpu = 3,
Other = 4,
}Expand description
FFI-stable discriminant for linsight_core::HardwareCategory. Per
ADR-0001 v3 lessons, ALL discriminants are #[repr(u8)] unit-only
enums; payload-bearing variants live on a sibling struct (see
RHardwareDevice). This avoids the stabby match_owned release-mode
bug entirely.
Variants§
Trait Implementations§
Source§impl Clone for RHardwareCategoryKind
impl Clone for RHardwareCategoryKind
Source§fn clone(&self) -> RHardwareCategoryKind
fn clone(&self) -> RHardwareCategoryKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RHardwareCategoryKind
Source§impl Debug for RHardwareCategoryKind
impl Debug for RHardwareCategoryKind
Source§impl From<HardwareCategory> for RHardwareCategoryKind
impl From<HardwareCategory> for RHardwareCategoryKind
Source§fn from(c: HardwareCategory) -> Self
fn from(c: HardwareCategory) -> Self
Converts to this type from the input type.
Source§impl From<RHardwareCategoryKind> for HardwareCategory
impl From<RHardwareCategoryKind> for HardwareCategory
Source§fn from(r: RHardwareCategoryKind) -> Self
fn from(r: RHardwareCategoryKind) -> Self
Converts to this type from the input type.
Source§impl IStable for RHardwareCategoryKind
impl IStable for RHardwareCategoryKind
Source§const REPORT: &'static TypeReport
const REPORT: &'static TypeReport
A compile-time generated report of the fields of the type, allowing for compatibility inspection.
Source§const ID: u64
const ID: u64
A stable (and ideally unique) identifier for the type. Often generated using
crate::report::gen_id, but can be manually set.Source§type ForbiddenValues = <Tuple2<u8, ()> as IStable>::ForbiddenValues
type ForbiddenValues = <Tuple2<u8, ()> as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
Source§type UnusedBits = <Tuple2<u8, ()> as IStable>::UnusedBits
type UnusedBits = <Tuple2<u8, ()> as IStable>::UnusedBits
The padding bits in the annotated types
Source§type HasExactlyOneNiche = B0
type HasExactlyOneNiche = B0
Allows the detection of whether or not
core::option::Options are stable: Read moreSource§type ContainsIndirections = <Tuple2<u8, ()> as IStable>::ContainsIndirections
type ContainsIndirections = <Tuple2<u8, ()> as IStable>::ContainsIndirections
Whether or not the type contains indirections (pointers, indices in independent data-structures…)
Source§impl PartialEq for RHardwareCategoryKind
impl PartialEq for RHardwareCategoryKind
Source§fn eq(&self, other: &RHardwareCategoryKind) -> bool
fn eq(&self, other: &RHardwareCategoryKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RHardwareCategoryKind
Auto Trait Implementations§
impl Freeze for RHardwareCategoryKind
impl RefUnwindSafe for RHardwareCategoryKind
impl Send for RHardwareCategoryKind
impl Sync for RHardwareCategoryKind
impl Unpin for RHardwareCategoryKind
impl UnsafeUnpin for RHardwareCategoryKind
impl UnwindSafe for RHardwareCategoryKind
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IPod for T
impl<T> IPod for T
Source§fn identifier() -> u64
fn identifier() -> u64
Produces an identifier for the type, allowing to check type at runtime (barring collisions).