Struct zarrs::array::concurrency::RecommendedConcurrency
source · pub struct RecommendedConcurrency { /* private fields */ }
Expand description
The recommended concurrency of a codec includes the most efficient and maximum recommended concurrency.
Consider a chain that does slow decoding first on a single thread, but subsequent codecs can run on multiple threads. In this case, recommended concurrency is best expressed by two numbers:
- the efficient concurrency, equal to the minimum of codecs
- the maximum concurrency, equal to the maximum of codecs
Implementations§
source§impl RecommendedConcurrency
impl RecommendedConcurrency
sourcepub fn new(range: Range<usize>) -> Self
pub fn new(range: Range<usize>) -> Self
Create a new recommended concurrency struct with an explicit concurrency range and preferred concurrency.
sourcepub fn new_minimum(minimum: usize) -> Self
pub fn new_minimum(minimum: usize) -> Self
Create a new recommended concurrency struct with a specified minimum concurrency and unbounded maximum concurrency.
sourcepub fn new_maximum(maximum: usize) -> Self
pub fn new_maximum(maximum: usize) -> Self
Create a new recommended concurrency struct with a specified maximum concurrency.
Trait Implementations§
source§impl Clone for RecommendedConcurrency
impl Clone for RecommendedConcurrency
source§fn clone(&self) -> RecommendedConcurrency
fn clone(&self) -> RecommendedConcurrency
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for RecommendedConcurrency
impl RefUnwindSafe for RecommendedConcurrency
impl Send for RecommendedConcurrency
impl Sync for RecommendedConcurrency
impl Unpin for RecommendedConcurrency
impl UnwindSafe for RecommendedConcurrency
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