pub enum SamplerExecutionMode {
SingleThreaded,
MultiThreaded,
}Expand description
Execution strategy used by the sampler.
This controls whether environment workers run inline in the current thread or in dedicated background threads.
Variants§
SingleThreaded
Run sampler workers inline in a local vector on the current thread.
MultiThreaded
Run sampler workers in dedicated background threads.
Trait Implementations§
Source§impl Clone for SamplerExecutionMode
impl Clone for SamplerExecutionMode
Source§fn clone(&self) -> SamplerExecutionMode
fn clone(&self) -> SamplerExecutionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SamplerExecutionMode
Auto Trait Implementations§
impl Freeze for SamplerExecutionMode
impl RefUnwindSafe for SamplerExecutionMode
impl Send for SamplerExecutionMode
impl Sync for SamplerExecutionMode
impl Unpin for SamplerExecutionMode
impl UnsafeUnpin for SamplerExecutionMode
impl UnwindSafe for SamplerExecutionMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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