Struct exocore_chain::chain::directory::DirectoryChainStore [−][src]
pub struct DirectoryChainStore { /* fields omitted */ }
Expand description
Directory based chain persistence. The chain is split in segments with configurable maximum size. This maximum size allows using mmap on 32bit systems by preventing segments from growing over 4gb.
Implementations
pub fn create_or_open(
config: DirectoryChainStoreConfig,
directory_path: &Path
) -> Result<DirectoryChainStore, Error>
[src]pub fn create(
config: DirectoryChainStoreConfig,
directory_path: &Path
) -> Result<DirectoryChainStore, Error>
[src]pub fn open(
config: DirectoryChainStoreConfig,
directory_path: &Path
) -> Result<DirectoryChainStore, Error>
[src]Trait Implementations
fn blocks_iter(
&self,
from_offset: BlockOffset
) -> Box<dyn Iterator<Item = Result<DataBlock<ChainData>, Error>> + '_>
[src]fn blocks_iter_reverse(
&self,
from_next_offset: BlockOffset
) -> Box<dyn Iterator<Item = Result<DataBlock<ChainData>, Error>> + '_>
[src]fn get_block_from_next_offset(
&self,
next_offset: BlockOffset
) -> Result<DataBlock<ChainData>, Error>
[src]fn get_block_by_operation_id(
&self,
operation_id: OperationId
) -> Result<Option<DataBlock<ChainData>>, Error>
[src]Auto Trait Implementations
impl RefUnwindSafe for DirectoryChainStore
impl Send for DirectoryChainStore
impl Sync for DirectoryChainStore
impl Unpin for DirectoryChainStore
impl UnwindSafe for DirectoryChainStore
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
impl<T> UnsafeAny for T where
T: Any,