[][src]Struct paho_mqtt_sys::MQTTClient_persistence

#[repr(C)]pub struct MQTTClient_persistence {
    pub context: *mut c_void,
    pub popen: Persistence_open,
    pub pclose: Persistence_close,
    pub pput: Persistence_put,
    pub pget: Persistence_get,
    pub premove: Persistence_remove,
    pub pkeys: Persistence_keys,
    pub pclear: Persistence_clear,
    pub pcontainskey: Persistence_containskey,
}

@brief A structure containing the function pointers to a persistence implementation and the context or state that will be shared across all the persistence functions.

Fields

context: *mut c_void

A pointer to any data required to initialize the persistent store.

popen: Persistence_open

A function pointer to an implementation of Persistence_open().

pclose: Persistence_close

A function pointer to an implementation of Persistence_close().

pput: Persistence_put

A function pointer to an implementation of Persistence_put().

pget: Persistence_get

A function pointer to an implementation of Persistence_get().

premove: Persistence_remove

A function pointer to an implementation of Persistence_remove().

pkeys: Persistence_keys

A function pointer to an implementation of Persistence_keys().

pclear: Persistence_clear

A function pointer to an implementation of Persistence_clear().

pcontainskey: Persistence_containskey

A function pointer to an implementation of Persistence_containskey().

Trait Implementations

impl Clone for MQTTClient_persistence[src]

impl Copy for MQTTClient_persistence[src]

impl Debug for MQTTClient_persistence[src]

impl Default for MQTTClient_persistence[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.