[−][src]Struct rsure::node::HashUpdater
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]
self,
base: &str,
estimate: &Estimate
) -> Result<HashMerger<S>>
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,
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]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,