#[repr(u8)]pub enum RSensorKind {
Scalar = 0,
Counter = 1,
Table = 2,
State = 3,
}Expand description
FFI-safe mirror of SensorKind. Unit-only enum encoded as a single
byte — adding a new variant is a wire-format breaking change.
Variants§
Trait Implementations§
Source§impl Clone for RSensorKind
impl Clone for RSensorKind
Source§fn clone(&self) -> RSensorKind
fn clone(&self) -> RSensorKind
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 RSensorKind
Source§impl Debug for RSensorKind
impl Debug for RSensorKind
Source§impl From<RSensorKind> for SensorKind
impl From<RSensorKind> for SensorKind
Source§fn from(r: RSensorKind) -> Self
fn from(r: RSensorKind) -> Self
Converts to this type from the input type.
Source§impl From<SensorKind> for RSensorKind
impl From<SensorKind> for RSensorKind
Source§fn from(k: SensorKind) -> Self
fn from(k: SensorKind) -> Self
Converts to this type from the input type.
Source§impl IStable for RSensorKind
impl IStable for RSensorKind
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 RSensorKind
impl RefUnwindSafe for RSensorKind
impl Send for RSensorKind
impl Sync for RSensorKind
impl Unpin for RSensorKind
impl UnsafeUnpin for RSensorKind
impl UnwindSafe for RSensorKind
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).