Node

Enum Node 

Source
pub enum Node {
    Integer(IntegerNode),
    Float(FloatNode),
    Enum(EnumNode),
    Boolean(BooleanNode),
    Command(CommandNode),
    Category(CategoryNode),
    SwissKnife(SkNode),
    Converter(ConverterNode),
    IntConverter(IntConverterNode),
    String(StringNode),
}
Expand description

Node kinds supported by the Tier-1 subset.

Variants§

§

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)

StringReg for string-typed register access.

Implementations§

Source§

impl Node

Source

pub fn kind_name(&self) -> &'static str

Return the GenICam node type name (e.g. “Integer”, “Float”, “Enumeration”).

Source

pub fn access_mode(&self) -> Option<AccessMode>

Return the access mode of the node, if applicable.

Source

pub fn name(&self) -> &str

Return the node name.

Source

pub fn meta(&self) -> &NodeMeta

Return the shared metadata for this node.

Source

pub fn visibility(&self) -> Visibility

Return the visibility level of this node.

Source

pub fn description(&self) -> Option<&str>

Return the description of this node, if any.

Source

pub fn tooltip(&self) -> Option<&str>

Return the tooltip of this node, if any.

Source

pub fn display_name(&self) -> Option<&str>

Return the display name of this node, if any.

Source

pub fn representation(&self) -> Option<Representation>

Return the recommended representation for this node, if any.

Source

pub fn predicates(&self) -> &PredicateRefs

Return the predicate references (pIsImplemented, pIsAvailable, pIsLocked) declared on this node.

Trait Implementations§

Source§

impl Debug for Node

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Node

§

impl !RefUnwindSafe for Node

§

impl Send for Node

§

impl !Sync for Node

§

impl Unpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more