Trait RedisModule

Source
pub trait RedisModule: Sized {
    // Required methods
    fn name() -> &'static CStr;
    fn version() -> i32;
    fn register_data_types(ctx: &Context) -> bool;
    fn register_commands(ctx: &Context) -> RedisResult<()>;

    // Provided methods
    fn init_fn(ctx: &Context) -> RedisResult<()> { ... }
    fn deinit_fn(ctx: &Context) -> RedisResult<()> { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§