pub struct WebScriptFetch { /* private fields */ }
Implementations§
Source§impl WebScriptFetch
impl WebScriptFetch
pub fn new_invalid() -> Result<(), JsValue>
pub fn next(&mut self) -> bool
pub fn read(&mut self, item: usize) -> JsValue
pub fn write(&mut self, item: usize, value: JsValue)
pub fn read_resource(&self, name: &str) -> JsValue
pub fn write_resource(&self, name: &str, value: JsValue)
pub fn access_resource(&self, name: &str, value: JsValue) -> JsValue
Trait Implementations§
Source§impl Clone for WebScriptFetch
impl Clone for WebScriptFetch
Source§fn clone(&self) -> WebScriptFetch
fn clone(&self) -> WebScriptFetch
Returns a copy 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 WebScriptFetch
impl Debug for WebScriptFetch
Source§impl From<WebScriptFetch> for JsValue
impl From<WebScriptFetch> for JsValue
Source§fn from(value: WebScriptFetch) -> Self
fn from(value: WebScriptFetch) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WebScriptFetch
impl FromWasmAbi for WebScriptFetch
Source§impl IntoWasmAbi for WebScriptFetch
impl IntoWasmAbi for WebScriptFetch
Source§impl LongRefFromWasmAbi for WebScriptFetch
impl LongRefFromWasmAbi for WebScriptFetch
Source§impl OptionFromWasmAbi for WebScriptFetch
impl OptionFromWasmAbi for WebScriptFetch
Source§impl OptionIntoWasmAbi for WebScriptFetch
impl OptionIntoWasmAbi for WebScriptFetch
Source§impl RefFromWasmAbi for WebScriptFetch
impl RefFromWasmAbi for WebScriptFetch
Source§type Anchor = RcRef<WebScriptFetch>
type Anchor = RcRef<WebScriptFetch>
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 WebScriptFetch
impl RefMutFromWasmAbi for WebScriptFetch
Source§impl TryFromJsValue for WebScriptFetch
impl TryFromJsValue for WebScriptFetch
Source§impl VectorFromWasmAbi for WebScriptFetch
impl VectorFromWasmAbi for WebScriptFetch
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WebScriptFetch]>
Source§impl VectorIntoJsValue for WebScriptFetch
impl VectorIntoJsValue for WebScriptFetch
fn vector_into_jsvalue(vector: Box<[WebScriptFetch]>) -> JsValue
Source§impl VectorIntoWasmAbi for WebScriptFetch
impl VectorIntoWasmAbi for WebScriptFetch
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WebScriptFetch]>) -> Self::Abi
Source§impl WasmDescribeVector for WebScriptFetch
impl WasmDescribeVector for WebScriptFetch
impl SupportsConstructor for WebScriptFetch
impl SupportsInstanceProperty for WebScriptFetch
impl SupportsStaticProperty for WebScriptFetch
Auto Trait Implementations§
impl Freeze for WebScriptFetch
impl RefUnwindSafe for WebScriptFetch
impl Send for WebScriptFetch
impl Sync for WebScriptFetch
impl Unpin for WebScriptFetch
impl UnwindSafe for WebScriptFetch
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::Abi
Source§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
.