pub struct ParallelHashOptions { /* private fields */ }Expand description
Bounded per-operation v1 hashing pipeline settings.
Implementations§
Source§impl ParallelHashOptions
impl ParallelHashOptions
Sourcepub fn new(workers: usize, queue_capacity: usize) -> Result<Self>
pub fn new(workers: usize, queue_capacity: usize) -> Result<Self>
Validates an explicit worker count and bounded queue capacity.
§Errors
Returns a metainfo error when either value is zero.
Sourcepub const fn queue_capacity(self) -> usize
pub const fn queue_capacity(self) -> usize
Returns the maximum number of queued pieces awaiting a worker.
Trait Implementations§
Source§impl Clone for ParallelHashOptions
impl Clone for ParallelHashOptions
Source§fn clone(&self) -> ParallelHashOptions
fn clone(&self) -> ParallelHashOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParallelHashOptions
impl Debug for ParallelHashOptions
Source§impl PartialEq for ParallelHashOptions
impl PartialEq for ParallelHashOptions
impl Copy for ParallelHashOptions
impl Eq for ParallelHashOptions
impl StructuralPartialEq for ParallelHashOptions
Auto Trait Implementations§
impl Freeze for ParallelHashOptions
impl RefUnwindSafe for ParallelHashOptions
impl Send for ParallelHashOptions
impl Sync for ParallelHashOptions
impl Unpin for ParallelHashOptions
impl UnwindSafe for ParallelHashOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more