#[non_exhaustive]pub enum Node {
Integer(IntegerNode),
Float(FloatNode),
Enum(EnumNode),
Boolean(BooleanNode),
Command(CommandNode),
Category(CategoryNode),
SwissKnife(SkNode),
Converter(ConverterNode),
IntConverter(IntConverterNode),
String(StringNode),
Register(RegisterNode),
}Expand description
Node kinds supported by the Tier-1 subset.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Integer(IntegerNode)
Signed integer feature stored in a fixed-width register block.
Float(FloatNode)
Floating point feature with optional scale/offset conversion.
Enum(EnumNode)
Enumeration feature mapping integers to symbolic names.
Boolean(BooleanNode)
Boolean feature represented as an integer register.
Command(CommandNode)
Command feature triggering a device-side action when written.
Category(CategoryNode)
Category organising related features.
SwissKnife(SkNode)
SwissKnife expression producing a computed value.
Converter(ConverterNode)
Converter transforming raw values to/from float values via formulas.
IntConverter(IntConverterNode)
IntConverter transforming raw values to/from integer values via formulas.
String(StringNode)
A string feature: a <StringReg>, or a <String> holding a value or
delegating through <pValue>.
Register(RegisterNode)
Raw byte-array register access.
Implementations§
Source§impl Node
impl Node
Sourcepub fn kind_name(&self) -> &'static str
pub fn kind_name(&self) -> &'static str
Return the GenICam node type name (e.g. “Integer”, “Float”, “Enumeration”).
Sourcepub fn access_mode(&self) -> Option<AccessMode>
pub fn access_mode(&self) -> Option<AccessMode>
Return the access mode of the node, if applicable.
A converter declares none; it is as writable as its <pValue>, which
the node alone cannot see, so it reports RO here. Ask
NodeMap::declared_access_mode
for the inherited mode.
Sourcepub fn selected(&self) -> &[String]
pub fn selected(&self) -> &[String]
<pSelected>: the features this node selects, when it is a selector
(GenICam Standard v2.1.1 §2.8.4). Empty otherwise.
Sourcepub fn visibility(&self) -> Visibility
pub fn visibility(&self) -> Visibility
Return the visibility level of this node.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Return the description of this node, if any.
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
Return the display name of this node, if any.
Sourcepub fn representation(&self) -> Option<Representation>
pub fn representation(&self) -> Option<Representation>
Return the recommended representation for this node, if any.
Sourcepub fn unit(&self) -> Option<&str>
pub fn unit(&self) -> Option<&str>
<Unit>: the engineering unit an Integer, Float, Converter or
IntConverter declares, such as "us".
Sourcepub fn min(&self) -> Option<Value>
pub fn min(&self) -> Option<Value>
<Min> as the XML declares it, typed as the node is: an Integer’s is
Value::Int, a Float’s Value::Float. A bound given through
<pMin>, or by the node <pValue> delegates to, is the device’s to
say: read it with NodeMap::feature_state.
Sourcepub fn inc(&self) -> Option<Value>
pub fn inc(&self) -> Option<Value>
<Inc> as the XML declares it; see Node::min. Only an Integer
declares one: a Float’s increment is not verified on writing (GenICam
Standard v2.1.1 §2.8.9) and is not stored.
Sourcepub fn predicates(&self) -> &PredicateRefs
pub fn predicates(&self) -> &PredicateRefs
Return the predicate references (pIsImplemented, pIsAvailable,
pIsLocked) declared on this node.