pub struct WasmMt { /* private fields */ }
Implementations§
source§impl WasmMt
impl WasmMt
pub fn new(pkg_js_uri: &str) -> Self
pub fn new_with_arraybuffers(ab_js: ArrayBuffer, ab_wasm: ArrayBuffer) -> Self
pub fn set_ab_init(&self, ab: ArrayBuffer)
pub fn set_ab_wasm(&self, ab: ArrayBuffer)
pub async fn init(&self) -> Result<&Self, JsValue>
pub async fn and_init(self) -> Result<Self, JsValue>
pub fn thread(&self) -> Thread
Auto Trait Implementations§
impl !RefUnwindSafe for WasmMt
impl !Send for WasmMt
impl !Sync for WasmMt
impl Unpin for WasmMt
impl UnwindSafe for WasmMt
Blanket Implementations§
source§impl<T> Type for Twhere
T: ?Sized,
impl<T> Type for Twhere
T: ?Sized,
source§default fn dangling(t: <T as Type>::Meta) -> NonNull<T>
default fn dangling(t: <T as Type>::Meta) -> NonNull<T>
Create a dangling non-null
*const Self
with the provided Self::Meta
.source§default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T
default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T
Create a
*mut Self
with the provided Self::Meta
.source§fn meta_type(self: *const Self) -> MetaType
fn meta_type(self: *const Self) -> MetaType
Helper method describing whether a type is
TraitObject
, Slice
or Concrete
.source§impl<T> Type for T
impl<T> Type for T
source§const METATYPE: MetaType = MetaType::Concrete
const METATYPE: MetaType = MetaType::Concrete
Enum describing whether a type is
TraitObject
, Slice
or Concrete
.source§fn dangling(_t: <T as Type>::Meta) -> NonNull<T>
fn dangling(_t: <T as Type>::Meta) -> NonNull<T>
Create a dangling non-null
*const Self
with the provided Self::Meta
.source§fn fatten(thin: *mut (), _t: <T as Type>::Meta) -> *mut T
fn fatten(thin: *mut (), _t: <T as Type>::Meta) -> *mut T
Create a
*mut Self
with the provided Self::Meta
.source§fn meta_type(self: *const Self) -> MetaType
fn meta_type(self: *const Self) -> MetaType
Helper method describing whether a type is
TraitObject
, Slice
or Concrete
.