pub struct ParallelOptions { /* private fields */ }Expand description
Independent scheduler ownership limits; source/index options remain unchanged.
Implementations§
Source§impl ParallelOptions
impl ParallelOptions
Sourcepub fn new(
workers: NonZeroUsize,
max_speculative_bytes: usize,
) -> Result<Self, ParallelOptionsError>
pub fn new( workers: NonZeroUsize, max_speculative_bytes: usize, ) -> Result<Self, ParallelOptionsError>
Validate an explicit worker count and additional scheduler/input grant.
Native AST, parser TLS, runtime internals, original backend-returned failure payloads (including path/name buffers), opaque panic payloads and worker stacks are not covered by this byte grant. Scheduler-created copies and carriers remain admitted. Stacks reserve 64 MiB per worker separately.
§Errors
Refuses unrepresentable layouts or a grant below the fixed slot layouts.
Trait Implementations§
Source§impl Clone for ParallelOptions
impl Clone for ParallelOptions
Source§impl Debug for ParallelOptions
impl Debug for ParallelOptions
Source§impl Default for ParallelOptions
impl Default for ParallelOptions
impl Eq for ParallelOptions
Source§impl PartialEq for ParallelOptions
impl PartialEq for ParallelOptions
impl StructuralPartialEq for ParallelOptions
Auto Trait Implementations§
impl Forget for ParallelOptions
impl Freeze for ParallelOptions
impl Move for ParallelOptions
impl RefUnwindSafe for ParallelOptions
impl Send for ParallelOptions
impl Sync for ParallelOptions
impl Unpin for ParallelOptions
impl UnsafeUnpin for ParallelOptions
impl UnwindSafe for ParallelOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Whether this borrowed key equals the stored key.
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> EvidenceLease for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more