Struct wasm_mt::Thread[][src]

pub struct Thread { /* fields omitted */ }

Implementations

impl Thread[src]

pub fn new(ab_init: ArrayBuffer, ab_wasm: ArrayBuffer) -> Self[src]

pub async fn init(&self) -> Result<&Self, JsValue>[src]

pub async fn and_init(self) -> Result<Self, JsValue>[src]

pub async fn exec<F>(&self, clos: F) -> Result<JsValue, JsValue> where
    F: MtClosure, 
[src]

pub async fn exec_async<F, T>(&self, aclos: F) -> Result<JsValue, JsValue> where
    F: MtAsyncClosure<T>, 
[src]

pub async fn exec_js(&self, js: &str) -> Result<JsValue, JsValue>[src]

pub async fn exec_js_async(&self, js: &str) -> Result<JsValue, JsValue>[src]

pub fn terminate(&self)[src]

pub fn get_id(&self) -> Option<Rc<String>>[src]

pub fn set_id(&self, id: &str) -> &Self[src]

pub fn get_busy(&self) -> bool[src]

pub fn set_busy(&self, tf: bool) -> &Self[src]

Auto Trait Implementations

impl !RefUnwindSafe for Thread

impl !Send for Thread

impl !Sync for Thread

impl Unpin for Thread

impl !UnwindSafe for Thread

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Type for T[src]

type Meta = Concrete

Type of metadata for type.

impl<T> Type for T where
    T: ?Sized
[src]