pub struct TransportConfig<'a> {
pub locator: Option<&'a str>,
pub mode: SessionMode,
pub properties: &'a [(&'a str, &'a str)],
pub node_name: &'a str,
pub namespace: &'a str,
pub domain_id: u32,
}Expand description
Transport session configuration
Fields§
§locator: Option<&'a str>Peer locator (e.g., “tcp/192.168.1.1:7447” or “serial//dev/ttyUSB0#baudrate=115200”)
mode: SessionModeSession mode: client, peer, or router
properties: &'a [(&'a str, &'a str)]Additional transport properties (key-value pairs)
These are passed through to the underlying transport backend. For zenoh-pico, recognized keys include:
"multicast_scouting"- Enable/disable multicast scouting ("true"or"false")"scouting_timeout_ms"- Scouting timeout in milliseconds"multicast_locator"- Multicast group address"listen"- Listen endpoint (e.g.,"tcp/0.0.0.0:0")"add_timestamp"- Add timestamps to messages ("true"or"false")
node_name: &'a strNode name for ROS 2 graph discovery liveliness token.
Empty string ("") means no node-liveliness token is declared (preserves
the pre-#104 behaviour). Non-empty causes the session to declare a
@ros2_lv/<domain>/<zid>/0/0/NN/%/<ns>/<node> token on open.
namespace: &'a strNode namespace for the liveliness token (e.g., "" or "/ns1").
Empty string is treated as root "/" by the keyexpr builder.
domain_id: u32ROS 2 domain ID used in the liveliness token key expression.
Trait Implementations§
Source§impl<'a> Clone for TransportConfig<'a>
impl<'a> Clone for TransportConfig<'a>
Source§fn clone(&self) -> TransportConfig<'a>
fn clone(&self) -> TransportConfig<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for TransportConfig<'a>
impl<'a> Debug for TransportConfig<'a>
Source§impl Default for TransportConfig<'_>
impl Default for TransportConfig<'_>
Source§fn default() -> TransportConfig<'_>
fn default() -> TransportConfig<'_>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for TransportConfig<'a>
impl<'a> RefUnwindSafe for TransportConfig<'a>
impl<'a> Send for TransportConfig<'a>
impl<'a> Sync for TransportConfig<'a>
impl<'a> Unpin for TransportConfig<'a>
impl<'a> UnsafeUnpin for TransportConfig<'a>
impl<'a> UnwindSafe for TransportConfig<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more