pub struct MqttInterfaceConfig {
pub enabled: bool,
pub audit: bool,
pub port: u16,
pub max_clients: usize,
pub qos: u8,
pub native_listener: bool,
}Expand description
MQTT broker interface configuration.
Fields§
§enabled: boolWhether MQTT is enabled
audit: boolWhether audit logging is enabled for MQTT
port: u16MQTT native TLS port (default: 8883)
max_clients: usizeMaximum simultaneous MQTT clients
qos: u8Default QoS level for bridge-published messages (0, 1, or 2)
native_listener: boolBind the native MQTTS listener on 0.0.0.0:{port}. Default true —
MQTT is exposed like every other interface (REST/WS/SSE/GraphQL/MCP),
for direct MQTT clients (requires the TLS cert/key at
{root}/certs/{domain}-cert.pem; a confined instance with no certs
stays loopback-only regardless). Set false to serve MQTT only through
the WebSocket proxy (wss://host/mqtt) and open no separate MQTT port.
Trait Implementations§
Source§impl Clone for MqttInterfaceConfig
impl Clone for MqttInterfaceConfig
Source§fn clone(&self) -> MqttInterfaceConfig
fn clone(&self) -> MqttInterfaceConfig
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 Debug for MqttInterfaceConfig
impl Debug for MqttInterfaceConfig
Source§impl Default for MqttInterfaceConfig
impl Default for MqttInterfaceConfig
Source§impl<'de> Deserialize<'de> for MqttInterfaceConfigwhere
MqttInterfaceConfig: Default,
impl<'de> Deserialize<'de> for MqttInterfaceConfigwhere
MqttInterfaceConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MqttInterfaceConfig
impl RefUnwindSafe for MqttInterfaceConfig
impl Send for MqttInterfaceConfig
impl Sync for MqttInterfaceConfig
impl Unpin for MqttInterfaceConfig
impl UnsafeUnpin for MqttInterfaceConfig
impl UnwindSafe for MqttInterfaceConfig
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