pub struct CreateOptions { /* private fields */ }
Expand description
The options for creating an MQTT client. This can be constructed using a CreateOptionsBuilder.
Implementations§
Source§impl CreateOptions
impl CreateOptions
Sourcepub fn mqtt_version(&self) -> MqttVersion
pub fn mqtt_version(&self) -> MqttVersion
Gets the MQTT protocol version used when creating the client.
This version is used by the client as the default when connecting. It can be overridden in the connect options to request a different version, but typically this is the highest version that can be used by the client.
Sourcepub fn mqtt_version_raw(&self) -> u32
pub fn mqtt_version_raw(&self) -> u32
Gets the raw, integer value of the MQTT version.
Trait Implementations§
Source§impl Debug for CreateOptions
impl Debug for CreateOptions
Source§impl Default for CreateOptions
impl Default for CreateOptions
Source§fn default() -> CreateOptions
fn default() -> CreateOptions
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a str> for CreateOptions
impl<'a> From<&'a str> for CreateOptions
Auto Trait Implementations§
impl Freeze for CreateOptions
impl !RefUnwindSafe for CreateOptions
impl Send for CreateOptions
impl !Sync for CreateOptions
impl Unpin for CreateOptions
impl !UnwindSafe for CreateOptions
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