pub struct HostConfig {
pub host_id: String,
pub group_subscriptions: Vec<String>,
pub client_id: String,
pub host: String,
pub port: u16,
pub keep_alive_secs: u16,
pub rebirth_debounce: Duration,
pub tls: Option<TlsConfig>,
}Expand description
Configuration for a HostApplication.
Fields§
§host_id: StringThe Host Application ID (its STATE topic is spBv1.0/STATE/<host_id>).
group_subscriptions: Vec<String>Sparkplug data-namespace topic filters to subscribe (default spBv1.0/#).
client_id: StringMQTT client id.
host: StringBroker host.
port: u16Broker port.
keep_alive_secs: u16Keep-alive interval, seconds.
rebirth_debounce: DurationDebounce window for rebirth requests, per Edge Node.
tls: Option<TlsConfig>Optional TLS/mTLS configuration (honored with the tls feature).
Implementations§
Trait Implementations§
Source§impl Clone for HostConfig
impl Clone for HostConfig
Source§fn clone(&self) -> HostConfig
fn clone(&self) -> HostConfig
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 moreAuto Trait Implementations§
impl Freeze for HostConfig
impl RefUnwindSafe for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnsafeUnpin for HostConfig
impl UnwindSafe for HostConfig
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