pub struct ConnectorConfig {
pub qos: u8,
pub retain: bool,
pub timeout_ms: Option<u32>,
pub protocol_options: Vec<(String, String)>,
}Expand description
Protocol-agnostic connector configuration
Provides common configuration options that apply across multiple protocols. Each protocol interprets these fields according to its semantics.
§Protocol Interpretation
- MQTT: qos=QoS level, retain=retain flag, timeout_ms=publish timeout
- Kafka: qos=acks setting (0=none, 1=leader, 2=all), timeout_ms=send timeout
- HTTP: qos=retry count, timeout_ms=request timeout
- Shmem: qos=priority, retain=pin in memory
Fields§
§qos: u8Quality of Service / reliability level (0, 1, or 2)
retain: boolWhether to retain/persist the message
timeout_ms: Option<u32>Optional timeout in milliseconds
protocol_options: Vec<(String, String)>Protocol-specific options as key-value pairs Allows custom configuration without polluting the base struct
Trait Implementations§
Source§impl Clone for ConnectorConfig
impl Clone for ConnectorConfig
Source§fn clone(&self) -> ConnectorConfig
fn clone(&self) -> ConnectorConfig
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 Debug for ConnectorConfig
impl Debug for ConnectorConfig
Auto Trait Implementations§
impl Freeze for ConnectorConfig
impl RefUnwindSafe for ConnectorConfig
impl Send for ConnectorConfig
impl Sync for ConnectorConfig
impl Unpin for ConnectorConfig
impl UnwindSafe for ConnectorConfig
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