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
sourceimpl CreateOptions
impl CreateOptions
sourcepub fn new() -> CreateOptions
pub fn new() -> CreateOptions
Create a new set of default client creation options.
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
sourceimpl Debug for CreateOptions
impl Debug for CreateOptions
sourceimpl Default for CreateOptions
impl Default for CreateOptions
sourcefn default() -> CreateOptions
fn default() -> CreateOptions
Returns the “default value” for a type. Read more
sourceimpl<'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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more