pub struct CreateOptions { /* private fields */ }
Expand description

The options for creating an MQTT client. This can be constructed using a CreateOptionsBuilder.

Implementations

Create a new set of default client creation options.

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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Converts to this type from the input type.

Constructs the create options from two string reference giving the server URI and Client ID.

Constructs the create options from two strings giving the server URI and Client ID.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.