pub struct Context {
    pub ctx: *mut RedisModuleCtx,
}
Expand description

Context is a structure that’s designed to give us a high-level interface to the Redis module API by abstracting away the raw C FFI calls.

Fields

ctx: *mut RedisModuleCtx

Implementations

Panics

Will panic if RedisModule_AutoMemory is missing in redismodule.h

Panics

Will panic if RedisModule_IsKeysPositionRequest is missing in redismodule.h

Panics

Will panic if RedisModule_KeyAtPos is missing in redismodule.h

Panics

Will panic if methods used are missing in redismodule.h

Returns the redis version either by calling RedisModule_GetServerVersion API, Or if it is not available, by calling “info server” API and parsing the reply

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.