#[repr(C)]pub struct RSensorId {
pub value: String,
}Expand description
FFI-safe mirror of SensorId. Carries an opaque UTF-8 string;
plugins should construct via SensorId::new(...).into() rather than
touching the value field directly.
Validation note: the host runs every RSensorId produced by a
plugin through SensorId::try_new in crate::host_init before it
is allowed into the daemon’s registry. A plugin that emits an empty
or whitespace-bearing string here is rejected with
PluginError::Parse.
Fields§
§value: StringImplementations§
Trait Implementations§
Source§impl IStable for RSensorId
impl IStable for RSensorId
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<String> as IStable>::ForbiddenValues
type ForbiddenValues = <Struct<String> as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
Source§type UnusedBits = <Struct<String> as IStable>::UnusedBits
type UnusedBits = <Struct<String> as IStable>::UnusedBits
The padding bits in the annotated types
Source§type HasExactlyOneNiche = <Struct<String> as IStable>::HasExactlyOneNiche
type HasExactlyOneNiche = <Struct<String> as IStable>::HasExactlyOneNiche
Allows the detection of whether or not
core::option::Options are stable: Read moreSource§type ContainsIndirections = <Struct<String> as IStable>::ContainsIndirections
type ContainsIndirections = <Struct<String> as IStable>::ContainsIndirections
Whether or not the type contains indirections (pointers, indices in independent data-structures…)
Auto Trait Implementations§
impl Freeze for RSensorId
impl RefUnwindSafe for RSensorId
impl Send for RSensorId
impl Sync for RSensorId
impl Unpin for RSensorId
impl UnsafeUnpin for RSensorId
impl UnwindSafe for RSensorId
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