Skip to main content

BoardConfig

Trait BoardConfig 

Source
pub trait BoardConfig {
    // Required methods
    fn zenoh_locator(&self) -> &str;
    fn domain_id(&self) -> u32;
}
Expand description

Universal board configuration accessors.

Implemented by every board crate’s top-level config struct (Config, NodeConfig, etc.). Generic code that needs to read the Zenoh locator or the ROS 2 domain ID can take &impl BoardConfig instead of cfg-gating on each board type.

Required Methods§

Source

fn zenoh_locator(&self) -> &str

Zenoh router/peer locator string (e.g. "tcp/192.168.1.50:7447").

Source

fn domain_id(&self) -> u32

ROS 2 domain ID (default 0).

Implementors§