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

Responses coming back from the server from client requests.

Implementations

Creates a new, empty, server response.

Creates the response object from the v3 “success” data structure sent by the C lib on completion of the operation.

Safety

This function runs in the context of a C callback indicating a successful action. It directly accesses the pointers and unions in the C MQTTAsync_successData struct.

Creates the response object from the v5 “success” data structure sent by the C lib on completion of the operation.

Safety

This function runs in the context of a C callback indicating a successful v5 action. It directly accesses the pointers and unions in the C MQTTAsync_successData5 struct.

Creates the response object from the v5 “failure” data structure sent by the C lib on completion of the operation.

Safety

This function runs in the context of a C callback indicating a failed v5 action. It directly accesses the pointers and unions in the C MQTTAsync_failureData5 struct.

Gets the response for the specific type of request.

Gets the response for a connection request

Gets the response for a subscription request.

Gets the response for a multi-topic subscription request.

Gets the response for an unsubscribe request.

Gets the response for a multi-topic unsubscribe request.

Gets the properties returned from the server.

Gets the reason code returned from the server.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.