pub struct HostOptions {
pub executable: PathBuf,
pub prefix_args: Vec<String>,
pub mode: HostMode,
pub env: BTreeMap<String, String>,
pub startup_timeout: Duration,
pub request_timeout: Duration,
pub shutdown_timeout: Duration,
pub max_pending: usize,
pub max_frame_bytes: usize,
pub state_directory: Option<PathBuf>,
}Expand description
An executable is always spawned directly. Prefix arguments support explicit development wrappers without shell quoting or command interpolation.
Fields§
§executable: PathBuf§prefix_args: Vec<String>§mode: HostMode§env: BTreeMap<String, String>§startup_timeout: Duration§request_timeout: Duration§shutdown_timeout: Duration§max_pending: usize§max_frame_bytes: usize§state_directory: Option<PathBuf>Implementations§
Trait Implementations§
Source§impl Clone for HostOptions
impl Clone for HostOptions
Auto Trait Implementations§
impl Freeze for HostOptions
impl RefUnwindSafe for HostOptions
impl Send for HostOptions
impl Sync for HostOptions
impl Unpin for HostOptions
impl UnsafeUnpin for HostOptions
impl UnwindSafe for HostOptions
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