#[repr(C)]pub struct PamojaMqttConfig {
pub client_id: *const c_char,
pub host: *const c_char,
pub port: u16,
pub keep_alive_secs: u32,
pub capacity: u32,
pub qos: PamojaQos,
}Expand description
Connection settings for an MQTT client.
client_id and host are borrowed null-terminated UTF-8 strings. A
keep_alive_secs or capacity of 0 selects the core default.
Fields§
§client_id: *const c_charThe MQTT client identifier presented to the broker.
host: *const c_charThe broker hostname or IP address.
port: u16The broker TCP port, conventionally 1883 for plaintext MQTT.
keep_alive_secs: u32Keep-alive interval in seconds, or 0 for the default of 30.
capacity: u32Bound on outstanding client requests, or 0 for the default of 64.
qos: PamojaQosDefault quality of service for publishes and subscriptions.
Auto Trait Implementations§
impl !Send for PamojaMqttConfig
impl !Sync for PamojaMqttConfig
impl Freeze for PamojaMqttConfig
impl RefUnwindSafe for PamojaMqttConfig
impl Unpin for PamojaMqttConfig
impl UnsafeUnpin for PamojaMqttConfig
impl UnwindSafe for PamojaMqttConfig
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