[][src]Struct rsure::node::HashUpdater

pub struct HashUpdater<'n, S> { /* fields omitted */ }

The HashUpdater is able to update hashes. This is the first pass.

Methods

impl<'a, S: Source> HashUpdater<'a, S>[src]

pub fn new(source: S, store: &dyn Store) -> HashUpdater<S>[src]

pub fn compute(self, base: &str, estimate: &Estimate) -> Result<HashMerger<S>>[src]

First pass. Go through the source nodes, and for any that need a hash, compute the hash, and collect the results into a temporary file. Consumes the updater, returning the HashMerger which is used to merge the hash results into a datastream.

pub fn compute_parallel(
    self,
    base: &str,
    estimate: &Estimate
) -> Result<HashMerger<S>>
[src]

First pass, multi-threaded version. Go through the source nodes, and for any that need a hash, compute the hash, and collect the result into a temporary file. Consumes the updater, returning the HashMerger which is used to merge the hash results into a datastream.

Auto Trait Implementations

impl<'n, S> Unpin for HashUpdater<'n, S> where
    S: Unpin

impl<'n, S> !Sync for HashUpdater<'n, S>

impl<'n, S> !Send for HashUpdater<'n, S>

impl<'n, S> !UnwindSafe for HashUpdater<'n, S>

impl<'n, S> !RefUnwindSafe for HashUpdater<'n, S>

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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