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

Defines a context that uses redis for the back-end storage.

Implementations§

Builds a new backend context which interacts with redis. The parameters in cfg will be used to locate the redis instance. If name and pword are not None, they will be used for credentials when connecting to redis.

Trait Implementations§

Registers a device in the redis backend.

Used by a driver to define a read-write device. name specifies the final segment of the device name (the path portion of the device name is specified in the driver’s configuration.) On success, the function retrns a 3-tuple. The first element is a closure which the driver uses to report new values of the device. The second element is an mpsc::Receiver<> handle which the driver monitors for incoming settings. The last item is the last value reported for the device. If it’s a new device or the backend doesn’t have a persistent store, then None is provided. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more