[][src]Struct hycon_rust::database::block_file::BlockFile

pub struct BlockFile<RawFile = File> { /* fields omitted */ }

Methods

impl<RawFile> BlockFile<RawFile> where
    RawFile: Read + Write + Seek + MiscFileOp
[src]

pub fn iterator_for(&mut self) -> BlockFileResult<BlockFileIterator<RawFile>>[src]

Trait Implementations

impl<RawFile> BlockFileOps for BlockFile<RawFile> where
    RawFile: Read + Write + Seek + MiscFileOp
[src]

fn new(
    path: &PathBuf,
    file_number: u32,
    file_position: u64
) -> BlockFileResult<BlockFile<RawFile>>
[src]

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]

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]

Write a Block or GenesisBlock object to the file system represented by this BlockFile object

impl<RawFile: Debug> Debug for BlockFile<RawFile>[src]

Auto Trait Implementations

impl<RawFile> Send for BlockFile<RawFile> where
    RawFile: Send

impl<RawFile> Sync for BlockFile<RawFile> where
    RawFile: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self