[−][src]Struct regiusmark::blockchain::store::BlockStore
Methods
impl BlockStore
[src]
pub fn new(blocklog_file: &Path, indexer: Arc<Indexer>) -> BlockStore
[src]
pub fn get_chain_height(&self) -> u64
[src]
pub fn get(&self, height: u64) -> Option<Arc<Block>>
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn insert(&mut self, batch: &mut WriteBatch, block: Block)
[src]
pub fn insert_genesis(&mut self, batch: &mut WriteBatch, block: Block)
[src]
pub fn reindex_blocks<F>(&mut self, opts: ReindexOpts, index_fn: F) where
F: Fn(&mut WriteBatch, &Block),
[src]
F: Fn(&mut WriteBatch, &Block),
Auto Trait Implementations
impl Send for BlockStore
impl !Sync for BlockStore
impl Unpin for BlockStore
impl UnwindSafe for BlockStore
impl !RefUnwindSafe for BlockStore
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,