Struct paho_mqtt::create_options::CreateOptions
source · 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) -> u32
pub fn mqtt_version(&self) -> u32
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.
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 !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