Struct wasm_mt_pool::ThreadPool [−][src]
Implementations
impl ThreadPool
[src]
pub fn new(size: usize, pkg_js_uri: &str) -> Self
[src]
pub fn new_with_arraybuffers(
size: usize,
ab_js: ArrayBuffer,
ab_wasm: ArrayBuffer
) -> Self
[src]
size: usize,
ab_js: ArrayBuffer,
ab_wasm: ArrayBuffer
) -> Self
pub fn set_ab_init(&self, ab: ArrayBuffer)
[src]
pub async fn init(&self) -> Result<&Self, JsValue>
[src]
pub async fn and_init(self) -> Result<Self, JsValue>
[src]
pub fn count_pending_jobs(&self) -> usize
[src]
pub fn exec<F>(&self, job: F) where
F: MtClosure,
[src]
F: MtClosure,
pub fn exec_async<F, T>(&self, job: F) where
F: MtAsyncClosure<T>,
[src]
F: MtAsyncClosure<T>,
pub fn exec_with_cb<F, G>(&self, job: F, cb: G) where
F: MtClosure,
G: PoolCallback,
[src]
F: MtClosure,
G: PoolCallback,
pub fn exec_async_with_cb<F, T, G>(&self, job: F, cb: G) where
F: MtAsyncClosure<T>,
G: PoolCallback,
[src]
F: MtAsyncClosure<T>,
G: PoolCallback,
pub fn exec_js(&self, js: &str)
[src]
pub fn exec_js_async(&self, js: &str)
[src]
pub fn exec_js_with_cb<G>(&self, js: &str, cb: G) where
G: PoolCallback,
[src]
G: PoolCallback,
pub fn exec_js_async_with_cb<G>(&self, js: &str, cb: G) where
G: PoolCallback,
[src]
G: PoolCallback,
Trait Implementations
impl Drop for ThreadPool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ThreadPool
impl !Send for ThreadPool
impl !Sync for ThreadPool
impl Unpin for ThreadPool
impl !UnwindSafe for ThreadPool
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Type for T where
T: ?Sized,
[src]
T: ?Sized,
pub default fn meta(self: *const T) -> <T as Type>::Meta
[src]
pub default fn data(self: *const T) -> *const ()
[src]
pub default fn data_mut(self: *mut T) -> *mut ()
[src]
pub default fn dangling(t: <T as Type>::Meta) -> NonNull<T>
[src]
pub default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T
[src]
pub const METATYPE: MetaType
[src]
type Meta: 'static
pub fn meta_type(self: *const Self) -> MetaType
[src]
impl<T> Type for T
[src]
pub const METATYPE: MetaType
[src]
type Meta = Concrete
Type of metadata for type.