pub(crate) struct DdsSection {
pub(crate) enabled: bool,
pub(crate) id: String,
pub(crate) provider: String,
pub(crate) domain_id: u16,
pub(crate) qos: PathBuf,
pub(crate) topics: Vec<String>,
pub(crate) unwrap_ma_payloads: bool,
pub(crate) suppress_echo: bool,
pub(crate) reconnect: bool,
pub(crate) reconnect_delay_secs: u64,
pub(crate) on_panic: String,
pub(crate) max_sample_size: usize,
}Expand description
DDS adapter settings.
Fields§
§enabled: boolWhether to spawn the adapter. true when the section is present.
id: StringEngine adapter id. Defaults to "dds".
provider: StringProvider name. Defaults to "rustdds".
domain_id: u16DDS domain id. Defaults to 0.
qos: PathBufQoS XML path. Required when the section is present.
topics: Vec<String>Engine topic names and DDS topic names, bridged both ways.
unwrap_ma_payloads: boolPeel A-GRA Rx/Tx wrappers on inbound samples.
suppress_echo: boolSkip outbound samples that originated on this adapter.
reconnect: boolRejoin the domain after the session ends or panics. Defaults to
false: an existing deployment sees no behavior change until
it opts in.
reconnect_delay_secs: u64Seconds to wait between rejoin attempts. Defaults to 1.
on_panic: Stringabort or reconnect when the session panics. Defaults to
"abort".
max_sample_size: usizeLargest inbound sample accepted, in bytes. Defaults to the adapter crate’s limit.
Implementations§
Source§impl DdsSection
impl DdsSection
Sourcepub(crate) fn provider_kind(&self) -> Result<DdsProviderKind, String>
pub(crate) fn provider_kind(&self) -> Result<DdsProviderKind, String>
Parses Self::provider into oa_gateway_dds::DdsProviderKind.
§Errors
Returns an error if the string is not a known provider.
Sourcepub(crate) fn on_panic_mode(&self) -> Result<OnPanic, String>
pub(crate) fn on_panic_mode(&self) -> Result<OnPanic, String>
Parses Self::on_panic into [oa_gateway_adapter::OnPanic].
§Errors
Returns an error if the string is not abort or reconnect.