pub struct MountConfig {
pub env: Arc<HashMap<String, String>>,
pub wasm_preload: bool,
pub disable_hydration: bool,
/* private fields */
}Fields§
§env: Arc<HashMap<String, String>>Environment variables passed to WASM runtime
wasm_preload: boolWhether to preload wasm script using
disable_hydration: boolWhether to disable hydration
Implementations§
Source§impl MountConfig
impl MountConfig
pub fn new( public_mount_point: impl Into<String>, dest_dir: impl Into<String>, env: Vec<(String, String)>, wasm_preload: bool, disable_hydration: bool, ) -> Result<MountConfig, ErrorCode>
pub fn mount_point(&self) -> &str
pub fn dest_dir(&self) -> &str
pub fn dest_http_root(&self) -> String
pub fn get_wasm_http_path(&self) -> String
pub fn get_run_js_http_path(&self) -> String
pub fn get_wasm_fs_path(&self) -> String
Trait Implementations§
Source§impl Clone for MountConfig
impl Clone for MountConfig
Source§fn clone(&self) -> MountConfig
fn clone(&self) -> MountConfig
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 moreAuto Trait Implementations§
impl Freeze for MountConfig
impl RefUnwindSafe for MountConfig
impl Send for MountConfig
impl Sync for MountConfig
impl Unpin for MountConfig
impl UnwindSafe for MountConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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