pub struct CpuExecutionBuilder { /* private fields */ }Expand description
Builder for a validated backend bound to current runtime capabilities.
Implementations§
Source§impl CpuExecutionBuilder
impl CpuExecutionBuilder
Sourcepub const fn instruction_policy(self, policy: InstructionPolicy) -> Self
pub const fn instruction_policy(self, policy: InstructionPolicy) -> Self
Choose instruction policy.
Sourcepub const fn threads(self, threads: NonZeroUsize) -> Self
pub const fn threads(self, threads: NonZeroUsize) -> Self
Set a nonzero worker bound.
Sourcepub fn build(self) -> Result<CpuExecution, CpuConfigError>
pub fn build(self) -> Result<CpuExecution, CpuConfigError>
Detect hardware, validate policy, and construct the backend.
Trait Implementations§
Source§impl Clone for CpuExecutionBuilder
impl Clone for CpuExecutionBuilder
Source§fn clone(&self) -> CpuExecutionBuilder
fn clone(&self) -> CpuExecutionBuilder
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 moreSource§impl Debug for CpuExecutionBuilder
impl Debug for CpuExecutionBuilder
Source§impl Default for CpuExecutionBuilder
impl Default for CpuExecutionBuilder
impl Copy for CpuExecutionBuilder
Auto Trait Implementations§
impl Freeze for CpuExecutionBuilder
impl RefUnwindSafe for CpuExecutionBuilder
impl Send for CpuExecutionBuilder
impl Sync for CpuExecutionBuilder
impl Unpin for CpuExecutionBuilder
impl UnwindSafe for CpuExecutionBuilder
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<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