pub struct Dist { /* private fields */ }Implementationsยง
Sourceยงimpl Dist
impl Dist
pub fn new(base_url: impl Into<String>) -> Self
Sourcepub fn with_script_name(self, name: impl Into<String>) -> Self
pub fn with_script_name(self, name: impl Into<String>) -> Self
Configures the name of the entrypoint script file; defaults to "ort.wasm.min.js".
Sourcepub fn with_binary_name(self, name: impl Into<String>) -> Self
pub fn with_binary_name(self, name: impl Into<String>) -> Self
Enables preloading the WASM binary loaded by the entrypoint script.
Sourcepub fn with_wrapper_name(self, name: impl Into<String>) -> Self
pub fn with_wrapper_name(self, name: impl Into<String>) -> Self
Configures the name of the Emscripten wrapper script preloaded along with the WASM binary, if preloading is
enabled. Defaults to the binary name with the .wasm extension replaced with .mjs.
Sourcepub fn integrities(&mut self) -> &mut Integrities
pub fn integrities(&mut self) -> &mut Integrities
Modify Subresource Integrity (SRI) hashes.
Trait Implementationsยง
impl Loadable for Dist
Auto Trait Implementationsยง
impl Freeze for Dist
impl RefUnwindSafe for Dist
impl Send for Dist
impl Sync for Dist
impl Unpin for Dist
impl UnwindSafe for Dist
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