[−][src]Struct hycon_rust::database::block_file::BlockFile
Methods
impl<RawFile> BlockFile<RawFile> where
RawFile: Read + Write + Seek + MiscFileOp,
[src]
RawFile: Read + Write + Seek + MiscFileOp,
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]
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
impl<RawFile: Debug> Debug for BlockFile<RawFile>
[src]
Auto Trait Implementations
impl<RawFile> Send for BlockFile<RawFile> where
RawFile: Send,
RawFile: Send,
impl<RawFile> Sync for BlockFile<RawFile> where
RawFile: Sync,
RawFile: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self