Struct uavcan::node::NodeConfig[][src]

pub struct NodeConfig {
    pub id: Option<NodeID>,
}

Configuration for an Node

Examples


use uavcan::NodeConfig;
use uavcan::NodeID;

let mut node_config = NodeConfig::default();
node_config.id = Some(NodeID::new(127));

Fields

An optional Uavcan NodeId

Nodes with id = None is, in Uavcan terms, an anonymous Node.

Trait Implementations

impl Clone for NodeConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NodeConfig
[src]

Formats the value using the given formatter. Read more

impl Eq for NodeConfig
[src]

impl PartialEq for NodeConfig
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for NodeConfig
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for NodeConfig

impl Sync for NodeConfig