#[repr(u8)]pub enum RCategory {
Cpu = 0,
Gpu = 1,
Memory = 2,
Storage = 3,
Network = 4,
Custom = 5,
}Expand description
FFI-safe mirror of Category. Same wire-format-stable contract as
RSensorKind.
Variants§
Trait Implementations§
impl Copy for RCategory
Source§impl IStable for RCategory
impl IStable for RCategory
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…)
Auto Trait Implementations§
impl Freeze for RCategory
impl RefUnwindSafe for RCategory
impl Send for RCategory
impl Sync for RCategory
impl Unpin for RCategory
impl UnsafeUnpin for RCategory
impl UnwindSafe for RCategory
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).