pub struct EnvPermit<E> {
idx: usize,
tx: Sender<usize>,
env: Arc<Mutex<E>>,
}Fields§
§idx: usize§tx: Sender<usize>§env: Arc<Mutex<E>>Implementations§
Source§impl<V, Ax> EnvPermit<Memory<V, Ax>>where
V: MyFloat + 'static,
impl<V, Ax> EnvPermit<Memory<V, Ax>>where
V: MyFloat + 'static,
async fn run<Ex, Ix, R: Rng + Send + 'static>(
self,
exec: Arc<Ex>,
num_iter: usize,
rng: R,
tx: Sender<Stat>,
) -> Result<()>where
Open01: Distribution<V>,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
Ex: Executor<V, Ax, Ix> + Send + Sync + 'static,
Ax: AgentExtTrait<V, Exec = Ex, Ix = Ix> + Default + Send + 'static,
Ix: InstanceExt<V, R, Ex> + Send,
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for EnvPermit<E>
impl<E> !RefUnwindSafe for EnvPermit<E>
impl<E> Send for EnvPermit<E>where
E: Send,
impl<E> Sync for EnvPermit<E>where
E: Send,
impl<E> Unpin for EnvPermit<E>
impl<E> !UnwindSafe for EnvPermit<E>
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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