pub fn read_record_by_id(&self, id: Id) {
        self.db.take(|db| {
            let read = db.reader().prepare_read(id).expect("unable to read id");

            if let CResult::Read(read) = send_until_success(CRequest::Read(read)) {
                let record = db.reader().read(read).expect(line_error!());

                println!("Plain: {:?}", String::from_utf8(record).unwrap());
            }
        });
    }
// read a record by its ID into plaintext.
read a record by its ID into plaintext.
read a record by its ID into plaintext .
pub fn read_record_by_id(&self, id: Id) {
        self.db.take(|db| {
            let read = db.reader().prepare_read(id).expect("unable to read id");
            if let CResult::Read(read) = send_until_success(CRequest::Read(read)) {
                let record = db.reader().read(read).expect(line_error!());
                println!("Plain: {:?}", String::from_utf8(record).unwrap());
            }
        });
    }
pub fn read_record_by_id ( & self , id : Id ) { self . db . take ( | db | { let read = db . reader ( ) . prepare_read ( id ) . expect ( " " ) ; if let CResult :: Read ( read ) = send_until_success ( CRequest :: Read ( read ) ) { let record = db . reader ( ) . read ( read ) . expect ( line_error ! ( ) ) ; println ! ( " " String from_utf8 ( record ) unwrap ( ) ) ; } } ) ; }
read a record by its ID into plaintext.
read a record by its ID into plaintext .
&self
id
Id