pub struct MinimalNode<N> where
    N: Node
{ /* private fields */ }
Expand description

A node with the minimum required application-layer functionality

A BasicNode wraps a Node and adds functionality to send a uavcan.node.Heartbeat.1.0 message every second. This is the only application-layer function that is required for all nodes.

A BasicNode uses up one publisher slot in the underlying Node.

The underlying node type N is usually a CoreNode.

Implementations

Creates a new minimal node

  • node: The underlying node (this is usually a CoreNode)

This function must be called once per second to send heartbeat messages

Unlike run_periodic_tasks, this function does not check if one second has passed since the last time it was called.

Either run_periodic_tasks or run_per_second_tasks should be called, but not both.

Sets the operating mode that will be reported in the heartbeat messages

Sets the health status that will be reported in the heartbeat messages

Sets the vendor-specific status code that will be reported in the heartbeat messages

Returns a reference to the enclosed node

Returns a mutable reference to the enclosed node

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.