[−][src]Struct merkletree::store::MmapStore
Store that saves the data on disk, and accesses it using memmap.
Trait Implementations
impl<E: Debug + Element> Debug for MmapStore<E>
[src]
impl<E: Element> Deref for MmapStore<E>
[src]
impl<E: Element> Store<E> for MmapStore<E>
[src]
fn new_with_config(
size: usize,
branches: usize,
config: StoreConfig
) -> Result<Self>
[src]
size: usize,
branches: usize,
config: StoreConfig
) -> Result<Self>
fn new(size: usize) -> Result<Self>
[src]
fn new_from_disk(
size: usize,
_branches: usize,
config: &StoreConfig
) -> Result<Self>
[src]
size: usize,
_branches: usize,
config: &StoreConfig
) -> Result<Self>
fn write_at(&mut self, el: E, index: usize) -> Result<()>
[src]
fn copy_from_slice(&mut self, buf: &[u8], start: usize) -> Result<()>
[src]
fn new_from_slice_with_config(
size: usize,
branches: usize,
data: &[u8],
config: StoreConfig
) -> Result<Self>
[src]
size: usize,
branches: usize,
data: &[u8],
config: StoreConfig
) -> Result<Self>
fn new_from_slice(size: usize, data: &[u8]) -> Result<Self>
[src]
fn read_at(&self, index: usize) -> Result<E>
[src]
fn read_into(&self, index: usize, buf: &mut [u8]) -> Result<()>
[src]
fn read_range_into(
&self,
_start: usize,
_end: usize,
_buf: &mut [u8]
) -> Result<()>
[src]
&self,
_start: usize,
_end: usize,
_buf: &mut [u8]
) -> Result<()>
fn read_range(&self, r: Range<usize>) -> Result<Vec<E>>
[src]
fn len(&self) -> usize
[src]
fn loaded_from_disk(&self) -> bool
[src]
fn compact(
&mut self,
_branches: usize,
_config: StoreConfig,
_store_version: u32
) -> Result<bool>
[src]
&mut self,
_branches: usize,
_config: StoreConfig,
_store_version: u32
) -> Result<bool>
fn reinit(&mut self) -> Result<()>
[src]
fn delete(_config: StoreConfig) -> Result<()>
[src]
fn is_empty(&self) -> bool
[src]
fn push(&mut self, el: E) -> Result<()>
[src]
fn last(&self) -> Result<E>
[src]
fn sync(&self) -> Result<()>
[src]
fn build_small_tree<A: Algorithm<E>, U: Unsigned>(
&mut self,
leafs: usize,
height: usize
) -> Result<E>
[src]
&mut self,
leafs: usize,
height: usize
) -> Result<E>
fn process_layer<A: Algorithm<E>, U: Unsigned>(
&mut self,
width: usize,
level: usize,
read_start: usize,
write_start: usize
) -> Result<()>
[src]
&mut self,
width: usize,
level: usize,
read_start: usize,
write_start: usize
) -> Result<()>
fn build<A: Algorithm<E>, U: Unsigned>(
&mut self,
leafs: usize,
height: usize,
_config: Option<StoreConfig>
) -> Result<E>
[src]
&mut self,
leafs: usize,
height: usize,
_config: Option<StoreConfig>
) -> Result<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for MmapStore<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for MmapStore<E>
impl<E> Sync for MmapStore<E>
impl<E> Unpin for MmapStore<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for MmapStore<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,