pub struct POOL;Implementations§
Source§impl POOL
impl POOL
pub fn install<OP, R>(&self, op: OP) -> R
pub fn join<A, B, RA, RB>(&self, oper_a: A, oper_b: B) -> (RA, RB)
pub fn scope<'scope, OP, R>(&self, op: OP) -> R
pub fn spawn<OP>(&self, op: OP)
pub fn spawn_fifo<OP>(&self, op: OP)
pub fn current_thread_has_pending_tasks(&self) -> Option<bool>
pub fn current_thread_index(&self) -> Option<usize>
pub fn current_num_threads(&self) -> usize
pub fn with<OP, R>(&self, op: OP) -> R
Available on Emscripten or non-
target_family=wasm only.pub fn without_threading<R>(&self, op: impl FnOnce() -> R) -> R
Auto Trait Implementations§
impl Freeze for POOL
impl RefUnwindSafe for POOL
impl Send for POOL
impl Sync for POOL
impl Unpin for POOL
impl UnwindSafe for POOL
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> 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