Struct uavcan::node::NodeID[][src]

pub struct NodeID(_);

The 7 bit NodeID used in Uavcan

Methods

impl NodeID
[src]

Creates a new NodeID

Examples


use uavcan::NodeID;

let node_id = NodeID::new(127);

Panics

Panics if id > 127 or id == 0

Trait Implementations

impl Copy for NodeID
[src]

impl Clone for NodeID
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NodeID
[src]

Formats the value using the given formatter. Read more

impl Eq for NodeID
[src]

impl PartialEq for NodeID
[src]

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

This method tests for !=.

impl From<NodeID> for u8
[src]

Performs the conversion.

impl From<NodeID> for u32
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for NodeID

impl Sync for NodeID