pub struct TransportConfig<'a> {
pub locator: Option<&'a str>,
pub mode: SessionMode,
pub properties: &'a [(&'a str, &'a str)],
}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")
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 · 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