pub struct WASMPlatformAPI { /* private fields */ }
Expand description
This uses fetch for io operations.
WASMPlatformAPI can only be used if the Interpreter is used within a Web Worker.
The following functions are not implemented and will always return an Err:
Implementations§
Trait Implementations§
Source§impl Debug for WASMPlatformAPI
impl Debug for WASMPlatformAPI
Source§impl Default for WASMPlatformAPI
impl Default for WASMPlatformAPI
Source§impl PlatformAPI for WASMPlatformAPI
impl PlatformAPI for WASMPlatformAPI
Source§fn get_lang_files(&self, _: &Path) -> Result<Vec<PathBuf>, Error>
fn get_lang_files(&self, _: &Path) -> Result<Vec<PathBuf>, Error>
This method is not implemented
Trait doc: get_lang_files
Source§fn write_lang_file(
&self,
_: &Path,
_: HashMap<String, String>,
) -> Result<(), Error>
fn write_lang_file( &self, _: &Path, _: HashMap<String, String>, ) -> Result<(), Error>
This method is not implemented
Trait doc: write_lang_file
Source§fn show_input_dialog(&self, _text: &str) -> Result<String, NativeError>
fn show_input_dialog(&self, _text: &str) -> Result<String, NativeError>
This method is not implemented
Trait doc: show_input_dialog
Source§fn get_lang_path(&self, lang_file: &Path) -> Result<PathBuf, Error>
fn get_lang_path(&self, lang_file: &Path) -> Result<PathBuf, Error>
Returns the canonical path of the file located at
lang_file
Read moreSource§fn get_lang_file_name(&self, lang_file: &Path) -> Option<OsString>
fn get_lang_file_name(&self, lang_file: &Path) -> Option<OsString>
Return the file name of the file located at
lang_file
Read moreSource§fn print_error(&mut self, text: &str)
fn print_error(&mut self, text: &str)
Prints to error output without newline Read more
Source§fn println_error(&mut self, text: &str)
fn println_error(&mut self, text: &str)
Prints to error output with newline Read more
Auto Trait Implementations§
impl Freeze for WASMPlatformAPI
impl RefUnwindSafe for WASMPlatformAPI
impl Send for WASMPlatformAPI
impl Sync for WASMPlatformAPI
impl Unpin for WASMPlatformAPI
impl UnwindSafe for WASMPlatformAPI
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