Trait oramfs::BaseORAM [−][src]
pub trait BaseORAM: Send { fn read(&mut self, block_id: i64) -> Vec<u8>; fn write(&mut self, block_id: i64, data: Bytes) -> usize; fn size(&self) -> i64; fn name(&self) -> String; fn args(&self) -> &ORAMConfig; fn test_state(&mut self) -> bool { ... } fn init(&mut self) { ... } fn cleanup(&mut self) { ... } fn post_op(&mut self) { ... } fn node_filename(&self, i: i64) -> String { ... } fn node_path(&self, i: i64) -> String { ... } }
Expand description
Base trait for an ORAM scheme
Required methods
Read block with id block_id
and return the bytes read
Write bytes in data
inside of block with id block_id
.
Return the number of bytes written.
fn args(&self) -> &ORAMConfig
fn args(&self) -> &ORAMConfig
Return the CLI arguments
Provided methods
fn test_state(&mut self) -> bool
fn node_filename(&self, i: i64) -> String
fn node_filename(&self, i: i64) -> String
Return the filename of the node with given number