[−][src]Trait hycon_rust::database::block_file::BlockFileOps
Required methods
fn new(
path: &PathBuf,
file_number: u32,
file_position: u64
) -> BlockFileResult<Self>
path: &PathBuf,
file_number: u32,
file_position: u64
) -> BlockFileResult<Self>
fn get<T>(
&mut self,
file_number: u32,
offset: u64,
length: usize
) -> BlockFileResult<T> where
T: Decode,
&mut self,
file_number: u32,
offset: u64,
length: usize
) -> BlockFileResult<T> where
T: Decode,
fn put<T>(&mut self, any_block: &mut T) -> BlockFileResult<PutResult> where
T: Encode + Proto,
T: Encode + Proto,
Implementors
impl<RawFile> BlockFileOps for BlockFile<RawFile> where
RawFile: Read + Write + Seek + MiscFileOp,
[src]
RawFile: Read + Write + Seek + MiscFileOp,
fn new(
path: &PathBuf,
file_number: u32,
file_position: u64
) -> BlockFileResult<BlockFile<RawFile>>
[src]
path: &PathBuf,
file_number: u32,
file_position: u64
) -> BlockFileResult<BlockFile<RawFile>>
Create, initialise and return an object of BlockFile
fn get<T>(
&mut self,
file_number: u32,
offset: u64,
length: usize
) -> BlockFileResult<T> where
T: Decode,
[src]
&mut self,
file_number: u32,
offset: u64,
length: usize
) -> BlockFileResult<T> where
T: Decode,
Retrieve an object of Block or GenesisBlock from the file system represented by this BlockFile object
fn put<T>(&mut self, any_block: &mut T) -> BlockFileResult<PutResult> where
T: Encode + Proto,
[src]
T: Encode + Proto,
Write a Block or GenesisBlock object to the file system represented by this BlockFile object