[][src]Trait iredismodule::rtype::TypeMethod

pub trait TypeMethod {
    const AUX_SAVE_TRIGGERS: AuxSaveTriggerFlag;
    fn rdb_load(io: &mut IO, encver: u32) -> Option<Box<Self>> { ... }
fn rdb_save(&self, io: &mut IO) { ... }
fn aof_rewrite<T: AsRef<str>>(&self, io: &mut IO, key: T) { ... }
fn mem_usage(&self) -> usize { ... }
fn digest(&self, digest: &mut Digest) { ... }
fn free(value: Box<Self>) { ... }
fn aux_save(rdb: &mut IO, when: i32) { ... }
fn aux_load(rdb: &mut IO, encver: u32, when: i32) { ... } }

A help trait for registing new data type

Associated Constants

const AUX_SAVE_TRIGGERS: AuxSaveTriggerFlag

Bit flags control when triggers the aux_load and aux_save callbacks

Loading content...

Provided methods

fn rdb_load(io: &mut IO, encver: u32) -> Option<Box<Self>>

A callback function pointer that loads data from RDB files

fn rdb_save(&self, io: &mut IO)

A callback function pointer that saves data to RDB files.

fn aof_rewrite<T: AsRef<str>>(&self, io: &mut IO, key: T)

A callback function pointer that rewrites data as commands.

fn mem_usage(&self) -> usize

A callback function pointer that report memory usage

It should currently be omitted since it is not yet implemented inside the Redis modules core.

fn digest(&self, digest: &mut Digest)

A callback function pointer that is used for DEBUG DIGEST.

It should currently be omitted since it is not yet implemented inside the Redis modules core.

fn free(value: Box<Self>)

A callback function pointer that can free a type value.

fn aux_save(rdb: &mut IO, when: i32)

A callback function pointer that loads out of keyspace data from RDB files.

fn aux_load(rdb: &mut IO, encver: u32, when: i32)

A callback function pointer that saves out of keyspace data to RDB files.

Loading content...

Implementors

Loading content...