pub struct StringNode {
pub name: String,
pub meta: NodeMeta,
pub access: AccessMode,
pub predicates: PredicateRefs,
/* private fields */
}Expand description
A string feature: a <StringReg>, which reads a register, or a
<String>, which holds a value or reads and writes the node its
<pValue> names (GenICam Standard v2.1.1 §2.8.11, §2.8.12).
Fields§
§name: StringUnique feature name.
meta: NodeMetaShared metadata (visibility, description, tooltip, etc.).
access: AccessModeDeclared access rights.
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Implementations§
Source§impl StringNode
impl StringNode
Sourcepub fn declared_len(&self) -> Option<u32>
pub fn declared_len(&self) -> Option<u32>
Declared length of a <StringReg> in bytes: the longest string it
holds, its terminating NUL included. None for a <String>, which
has no register, and Some(0) for a register whose length is read
from a <pLength> node.
Sourcepub fn port(&self) -> Option<&str>
pub fn port(&self) -> Option<&str>
The <pPort> the register’s address is relative to; None means the
device, or a <String>, which has no register.
Sourcepub fn pvalue(&self) -> Option<&str>
pub fn pvalue(&self) -> Option<&str>
The node a <String> reads and writes through, if it delegates.
Sourcepub fn length_node(&self) -> Option<&str>
pub fn length_node(&self) -> Option<&str>
The <pLength> node a <StringReg>’s length is read from, if any.