pub struct HybridParallelismProfile { /* private fields */ }Expand description
Parallelism configuration
Implementations§
Source§impl HybridParallelismProfile
impl HybridParallelismProfile
pub fn with_strategy( strategy: Strategy, max_segment_size: u32, config: Option<ParallelismConfig>, ) -> Result<Self, StreamError>
pub fn from_stream_header( header: HeaderV1, config: Option<ParallelismConfig>, ) -> Result<Self, StreamError>
Sourcepub fn cpu_workers(&self) -> usize
pub fn cpu_workers(&self) -> usize
Read-only accessors
pub fn gpu_workers(&self) -> usize
pub fn inflight_segments(&self) -> usize
pub fn gpu_threshold(&self) -> usize
pub fn gpu(&self) -> Option<GpuInfo>
pub fn single_threaded() -> Self
pub fn semi_dynamic( max_segment_size: u32, mem_fraction: f64, hard_cap: usize, ) -> Self
pub fn dynamic(max_segment_size: u32) -> Self
Trait Implementations§
Source§impl Clone for HybridParallelismProfile
impl Clone for HybridParallelismProfile
Source§fn clone(&self) -> HybridParallelismProfile
fn clone(&self) -> HybridParallelismProfile
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 moreAuto Trait Implementations§
impl Freeze for HybridParallelismProfile
impl RefUnwindSafe for HybridParallelismProfile
impl Send for HybridParallelismProfile
impl Sync for HybridParallelismProfile
impl Unpin for HybridParallelismProfile
impl UnsafeUnpin for HybridParallelismProfile
impl UnwindSafe for HybridParallelismProfile
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