#[non_exhaustive]pub struct SpawnOptions {
pub muse_bin: Option<PathBuf>,
pub args: Vec<OsString>,
pub cwd: Option<PathBuf>,
pub env: Option<HashMap<OsString, OsString>>,
pub shutdown_timeout: Duration,
}Expand description
Inputs for an SDK-owned muse serve process.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.muse_bin: Option<PathBuf>Explicit host binary. When absent, discovery searches PATH.
args: Vec<OsString>Host arguments. The default is exactly serve.
cwd: Option<PathBuf>Optional child working directory.
env: Option<HashMap<OsString, OsString>>Optional child environment overrides, inherited environment preserved.
shutdown_timeout: DurationHow long MuseChild::close and MuseClient::close let the host drain
after stdin EOF before SIGTERM (the platform kill off Unix). Defaults to DEFAULT_SHUTDOWN_TIMEOUT; match it to a host
configured with a different drain timeout. Zero skips the drain window
but not the fixed SIGTERM_GRACE before SIGKILL.
Trait Implementations§
Source§impl Clone for SpawnOptions
impl Clone for SpawnOptions
Source§impl Debug for SpawnOptions
impl Debug for SpawnOptions
Auto Trait Implementations§
impl Forget for SpawnOptions
impl Freeze for SpawnOptions
impl Move for SpawnOptions
impl RefUnwindSafe for SpawnOptions
impl Send for SpawnOptions
impl Sync for SpawnOptions
impl Unpin for SpawnOptions
impl UnsafeUnpin for SpawnOptions
impl UnwindSafe for SpawnOptions
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