Struct rdb::formatter::protocol::Protocol [-] [+] [src]

pub struct Protocol {
    // some fields omitted
}

Methods

impl Protocol

fn new() -> Protocol

Trait Implementations

impl Formatter for Protocol

fn start_rdb(&mut self)

fn end_rdb(&mut self)

fn start_database(&mut self, db_number: u32)

fn set(&mut self, key: &[u8], value: &[u8], expiry: Option<u64>)

fn start_hash(&mut self, _key: &[u8], _length: u32, expiry: Option<u64>, _info: EncodingType)

fn end_hash(&mut self, key: &[u8])

fn hash_element(&mut self, key: &[u8], field: &[u8], value: &[u8])

fn start_set(&mut self, _key: &[u8], _cardinality: u32, expiry: Option<u64>, _info: EncodingType)

fn end_set(&mut self, key: &[u8])

fn set_element(&mut self, key: &[u8], member: &[u8])

fn start_list(&mut self, _key: &[u8], _length: u32, expiry: Option<u64>, _info: EncodingType)

fn end_list(&mut self, key: &[u8])

fn list_element(&mut self, key: &[u8], value: &[u8])

fn start_sorted_set(&mut self, _key: &[u8], _length: u32, expiry: Option<u64>, _info: EncodingType)

fn end_sorted_set(&mut self, key: &[u8])

fn sorted_set_element(&mut self, key: &[u8], score: f64, member: &[u8])

fn checksum(&mut self, checksum: &[u8])

fn end_database(&mut self, db_index: u32)

fn resizedb(&mut self, db_size: u32, expires_size: u32)

fn aux_field(&mut self, key: &[u8], value: &[u8])