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

A node that provides all basic application-layer functionality

This node performs the following functions:

  • Sending a uavcan.node.Heartbeat every second
  • Responding to uavcan.node.GetInfo requests
  • Sending a uavcan.node.port.List message every 10 seconds

A BasicNode uses up two publisher slots in the underlying node.

The underlying node type N is usually a CoreNode.

Implementations

Creates a new basic node

  • node: The underlying node (this is usually a CoreNode)
  • node_info: The information that should be returned when handling node information requests

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

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

Trait Implementations

The clock that this node uses

The instant that this node’s clock produces

The transport that this node uses

The transmitter that this node uses

The receiver that this node uses

Receives any available incoming frames and attempts ot reassemble them into a transfer Read more

Starts publishing messages on subject Read more

Stops publishing messages on a subject

Publishes a message Read more

Sets up to send requests for a service Read more

Stops sending requests for a service

Sends a service request to another node Read more

Subscribes to messages on a topic

Subscribes to requests for a service

Responds to a service request Read more

Attempts to flush all outgoing frames

Returns a reference to the enclosed clock

Returns a mutable reference to the enclosed clock

Returns a reference to the transport transmitter

Returns a mutable reference to the transport transmitter

Returns a reference to the transport receiver

Returns a mutable reference to the transport receiver

Returns the identifier of this 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.