pub struct BrowserIntegration;Expand description
JavaScript code generator for browser integration
Implementations§
Source§impl BrowserIntegration
impl BrowserIntegration
Sourcepub fn generate_html_page(
pipeline: &WasmPipeline,
wasm_module: &WasmModule,
) -> SklResult<String>
pub fn generate_html_page( pipeline: &WasmPipeline, wasm_module: &WasmModule, ) -> SklResult<String>
Generate complete HTML page with embedded WASM
Sourcepub fn generate_service_worker(pipeline: &WasmPipeline) -> SklResult<String>
pub fn generate_service_worker(pipeline: &WasmPipeline) -> SklResult<String>
Generate service worker for offline ML
Auto Trait Implementations§
impl Freeze for BrowserIntegration
impl RefUnwindSafe for BrowserIntegration
impl Send for BrowserIntegration
impl Sync for BrowserIntegration
impl Unpin for BrowserIntegration
impl UnwindSafe for BrowserIntegration
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more