#[non_exhaustive]pub struct FeatureState {
pub kind: &'static str,
pub value: FeatureValue,
pub access: Option<AccessMode>,
pub is_implemented: bool,
pub is_available: bool,
pub range: Option<ValueRange>,
pub enum_entries: Option<Vec<String>>,
pub unit: Option<String>,
pub polling_time: Option<Duration>,
pub caching: CachingMode,
}Expand description
The live state of one feature, read from the device in a single call.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: &'static strGenICam node type, as Node::kind_name spells it.
value: FeatureValueThe current value, or FeatureValue::None for a feature that has
none to read.
access: Option<AccessMode>What the feature permits now: the declared mode along its <pValue>
chain, made RO by a lock or by being unavailable.
None means neither reading nor writing is possible, or the node has
no access mode at all, as a category does.
is_implemented: boolpIsImplemented: whether the device has this feature at all.
is_available: boolpIsAvailable and selector gating: whether the feature can be used in
the device’s current state.
range: Option<ValueRange>Current bounds of an Integer, Float or converter feature; None when
either bound is unknown — not declared, or declared through a <pMin>
or <pMax> that could not be read. A converter’s are its <pValue>’s
mapped through <FormulaFrom> and <Slope>.
enum_entries: Option<Vec<String>>The entries an Enumeration accepts now, after their own
pIsImplemented/pIsAvailable.
unit: Option<String>Engineering unit, such as "us".
polling_time: Option<Duration>How long a viewer may show this value before reading it again: the
<PollingTime> of the feature or of a register its value is read
through (NodeMap::polling_time). None when nothing polls it.
caching: CachingModeWhether, and how, its value may be answered from a cache
(NodeMap::caching_mode). A NoCache feature without a polling
time changes on the device with nothing to say when.