pub struct WasiOptions { /* private fields */ }Implementations§
Source§impl WasiOptions
impl WasiOptions
pub fn new_with_values( args: Option<Box<[JsValue]>>, env: Option<Object>, preopens: Object, ) -> WasiOptions
pub fn new(preopens: Object) -> WasiOptions
pub fn args(&self) -> Option<Box<[JsValue]>>
pub fn set_args(&mut self, value: Option<Box<[JsValue]>>)
pub fn env(&self) -> Option<Object>
pub fn set_env(&mut self, value: Option<Object>)
pub fn preopens(&self) -> Object
pub fn set_preopens(&mut self, value: Object)
Trait Implementations§
Source§impl Clone for WasiOptions
impl Clone for WasiOptions
Source§fn clone(&self) -> WasiOptions
fn clone(&self) -> WasiOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WasiOptions
impl Debug for WasiOptions
Source§impl From<WasiOptions> for JsValue
impl From<WasiOptions> for JsValue
Source§fn from(value: WasiOptions) -> Self
fn from(value: WasiOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasiOptions
impl FromWasmAbi for WasiOptions
Source§impl IntoWasmAbi for WasiOptions
impl IntoWasmAbi for WasiOptions
Source§impl LongRefFromWasmAbi for WasiOptions
impl LongRefFromWasmAbi for WasiOptions
Source§impl OptionFromWasmAbi for WasiOptions
impl OptionFromWasmAbi for WasiOptions
Source§impl OptionIntoWasmAbi for WasiOptions
impl OptionIntoWasmAbi for WasiOptions
Source§impl PartialEq for WasiOptions
impl PartialEq for WasiOptions
Source§impl RefFromWasmAbi for WasiOptions
impl RefFromWasmAbi for WasiOptions
Source§type Anchor = RcRef<WasiOptions>
type Anchor = RcRef<WasiOptions>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for WasiOptions
impl RefMutFromWasmAbi for WasiOptions
Source§impl TryFromJsValue for WasiOptions
impl TryFromJsValue for WasiOptions
Source§impl VectorFromWasmAbi for WasiOptions
impl VectorFromWasmAbi for WasiOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasiOptions]>
Source§impl VectorIntoJsValue for WasiOptions
impl VectorIntoJsValue for WasiOptions
fn vector_into_jsvalue(vector: Box<[WasiOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for WasiOptions
impl VectorIntoWasmAbi for WasiOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasiOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for WasiOptions
impl WasmDescribeVector for WasiOptions
impl StructuralPartialEq for WasiOptions
impl SupportsConstructor for WasiOptions
impl SupportsInstanceProperty for WasiOptions
impl SupportsStaticProperty for WasiOptions
Auto Trait Implementations§
impl Freeze for WasiOptions
impl RefUnwindSafe for WasiOptions
impl !Send for WasiOptions
impl !Sync for WasiOptions
impl Unpin for WasiOptions
impl UnwindSafe for WasiOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.