pub struct ClientSettings { /* private fields */ }
Expand description
Fundamentum IoT
Settings
Implementations§
Source§impl ClientSettings
impl ClientSettings
Sourcepub const fn new(
security: Security,
device: Device,
endpoint: String,
mqtt_options_overrides: Option<MQTTOptionsOverrides>,
) -> Self
pub const fn new( security: Security, device: Device, endpoint: String, mqtt_options_overrides: Option<MQTTOptionsOverrides>, ) -> Self
Create a new FundamentumIoTSettings
§Params
security
: Security generatordevice
: Device’s definitioniot_endpoint
: Uri endpoint MQTTmqtt_options_overrides
: MQTT options overrides
Sourcepub async fn to_mqtt_options(&self) -> Result<MqttOptions, Error>
pub async fn to_mqtt_options(&self) -> Result<MqttOptions, Error>
Converts the ClientSettings
struct into MqttOptions
.
This method transforms the current ClientSettings
instance into a set of
options that can be used to configure rumqtt client.
§Returns
A struct containing the MQTT options derived from the current ClientSettings
.
§Errors
Returns an error::Error
if an error occurs while generating a new signed token.
Auto Trait Implementations§
impl !Freeze for ClientSettings
impl !RefUnwindSafe for ClientSettings
impl Send for ClientSettings
impl Sync for ClientSettings
impl Unpin for ClientSettings
impl !UnwindSafe for ClientSettings
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