#[repr(C)]pub struct RReading {
pub kind: RReadingKind,
pub scalar: f64,
pub counter: u64,
pub state: Option<String>,
pub table: Vec<RTableRow>,
}Expand description
FFI-safe mirror of Reading — every sample a plugin returns is
one of these variants, selected by kind. The four payload fields
(scalar / counter / state / table) live alongside the discriminant
and are read individually based on kind. Inactive fields carry
defaults that callers must not read.
Fields§
§kind: RReadingKind§scalar: f64§counter: u64§state: Option<String>§table: Vec<RTableRow>Implementations§
Trait Implementations§
Source§impl IStable for RReading
impl IStable for RReading
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 = <Struct<FieldPair<FieldPair<FieldPair<FieldPair<RReadingKind, f64>, u64>, Option<String>>, Vec<RTableRow>>> as IStable>::ForbiddenValues
type ForbiddenValues = <Struct<FieldPair<FieldPair<FieldPair<FieldPair<RReadingKind, f64>, u64>, Option<String>>, Vec<RTableRow>>> as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
Source§type UnusedBits = <Struct<FieldPair<FieldPair<FieldPair<FieldPair<RReadingKind, f64>, u64>, Option<String>>, Vec<RTableRow>>> as IStable>::UnusedBits
type UnusedBits = <Struct<FieldPair<FieldPair<FieldPair<FieldPair<RReadingKind, f64>, u64>, Option<String>>, Vec<RTableRow>>> as IStable>::UnusedBits
The padding bits in the annotated types
Source§type Size = <Struct<FieldPair<FieldPair<FieldPair<FieldPair<RReadingKind, f64>, u64>, Option<String>>, Vec<RTableRow>>> as IStable>::Size
type Size = <Struct<FieldPair<FieldPair<FieldPair<FieldPair<RReadingKind, f64>, u64>, Option<String>>, Vec<RTableRow>>> as IStable>::Size
The size of the annotated type in bytes.
Source§type Align = <Struct<FieldPair<FieldPair<FieldPair<FieldPair<RReadingKind, f64>, u64>, Option<String>>, Vec<RTableRow>>> as IStable>::Align
type Align = <Struct<FieldPair<FieldPair<FieldPair<FieldPair<RReadingKind, f64>, u64>, Option<String>>, Vec<RTableRow>>> as IStable>::Align
The alignment of the annotated type in bytes.
Source§type HasExactlyOneNiche = <Struct<FieldPair<FieldPair<FieldPair<FieldPair<RReadingKind, f64>, u64>, Option<String>>, Vec<RTableRow>>> as IStable>::HasExactlyOneNiche
type HasExactlyOneNiche = <Struct<FieldPair<FieldPair<FieldPair<FieldPair<RReadingKind, f64>, u64>, Option<String>>, Vec<RTableRow>>> as IStable>::HasExactlyOneNiche
Allows the detection of whether or not
core::option::Options are stable: Read moreAuto Trait Implementations§
impl Freeze for RReading
impl RefUnwindSafe for RReading
impl Send for RReading
impl Sync for RReading
impl Unpin for RReading
impl UnsafeUnpin for RReading
impl UnwindSafe for RReading
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