pub struct MountConfigBuilder {
pub mount_point: String,
pub dest_dir: String,
pub env: Vec<(String, String)>,
pub wasm_preload: bool,
pub disable_hydration: bool,
}Fields§
§mount_point: String§dest_dir: String§env: Vec<(String, String)>§wasm_preload: bool§disable_hydration: boolImplementations§
Source§impl MountConfigBuilder
impl MountConfigBuilder
pub fn new( mount_point: impl Into<String>, dest_dir: impl Into<String>, ) -> MountConfigBuilder
pub fn envs(self, envs: Vec<(String, String)>) -> Self
pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn wasm_preload(self, wasm_preload: bool) -> Self
pub fn disable_hydration(self, disable_hydration: bool) -> Self
pub fn build(self) -> Result<MountConfig, ErrorCode>
Auto Trait Implementations§
impl Freeze for MountConfigBuilder
impl RefUnwindSafe for MountConfigBuilder
impl Send for MountConfigBuilder
impl Sync for MountConfigBuilder
impl Unpin for MountConfigBuilder
impl UnwindSafe for MountConfigBuilder
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> 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